akcp

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SensorProbe_type = iota
	SecurityProbe_type
	SensorProbePlus_type
)

Variables

This section is empty.

Functions

func GetSensorTypeInt

func GetSensorTypeInt(type_string string, device_type int) (uint32, error)

func GetSensorsIDsFromTable

func GetSensorsIDsFromTable(params *gosnmp.GoSNMP, tableOID string) (sensors []string, err error)

func QueryHumidityTable

func QueryHumidityTable(params *gosnmp.GoSNMP, device_type int) (sensors []string, err error)

func QuerySensorList

func QuerySensorList(params *gosnmp.GoSNMP, device_type int) (sensors []string, err error)

func QueryTemperatureTable

func QueryTemperatureTable(params *gosnmp.GoSNMP, device_type int) (sensors []string, err error)

func ValueToString

func ValueToString(pdu gosnmp.SnmpPDU) string

func ValueToUint64

func ValueToUint64(pdu gosnmp.SnmpPDU) (uint64, error)

Types

type SensorDetails

type SensorDetails struct {
	Sensortype uint64
	Name       string
	Value      uint64
	Unit       string
	Status     uint64
}

func QuerySensorDetails

func QuerySensorDetails(params *gosnmp.GoSNMP, sensorIndex string, device_type int) (SensorDetails, error)

type SensorType

type SensorType uint64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL