Versions in this module Expand all Collapse all v1 v1.0.1 Oct 2, 2022 Changes in this version + const MaxBinaryBytes + type AsyncValues struct + CommandValues []*CommandValue + DeviceName string + SourceName string + type AutoEventManager interface + RestartForDevice func(name string) + StartAutoEvents func() + StopForDevice func(name string) + type CommandRequest struct + Attributes map[string]interface{} + DeviceResourceName string + Type string + type CommandValue struct + DeviceResourceName string + Origin int64 + Tags map[string]string + Type string + Value interface{} + func NewCommandValue(deviceResourceName string, valueType string, value interface{}) (*CommandValue, error) + func NewCommandValueWithOrigin(deviceResourceName string, valueType string, value interface{}, origin int64) (*CommandValue, error) + func (cv *CommandValue) BinaryValue() ([]byte, error) + func (cv *CommandValue) BoolArrayValue() ([]bool, error) + func (cv *CommandValue) BoolValue() (bool, error) + func (cv *CommandValue) Float32ArrayValue() ([]float32, error) + func (cv *CommandValue) Float32Value() (float32, error) + func (cv *CommandValue) Float64ArrayValue() ([]float64, error) + func (cv *CommandValue) Float64Value() (float64, error) + func (cv *CommandValue) Int16ArrayValue() ([]int16, error) + func (cv *CommandValue) Int16Value() (int16, error) + func (cv *CommandValue) Int32ArrayValue() ([]int32, error) + func (cv *CommandValue) Int32Value() (int32, error) + func (cv *CommandValue) Int64ArrayValue() ([]int64, error) + func (cv *CommandValue) Int64Value() (int64, error) + func (cv *CommandValue) Int8ArrayValue() ([]int8, error) + func (cv *CommandValue) Int8Value() (int8, error) + func (cv *CommandValue) ObjectValue() (interface{}, error) + func (cv *CommandValue) String() string + func (cv *CommandValue) StringArrayValue() ([]string, error) + func (cv *CommandValue) StringValue() (string, error) + func (cv *CommandValue) Uint16ArrayValue() ([]uint16, error) + func (cv *CommandValue) Uint16Value() (uint16, error) + func (cv *CommandValue) Uint32ArrayValue() ([]uint32, error) + func (cv *CommandValue) Uint32Value() (uint32, error) + func (cv *CommandValue) Uint64ArrayValue() ([]uint64, error) + func (cv *CommandValue) Uint64Value() (uint64, error) + func (cv *CommandValue) Uint8ArrayValue() ([]uint8, error) + func (cv *CommandValue) Uint8Value() (uint8, error) + func (cv *CommandValue) ValueToString() string + type DeviceValidator interface + ValidateDevice func(device models.Device) error + type DiscoveredDevice struct + Description string + Labels []string + Name string + Protocols map[string]models.ProtocolProperties + type ProtocolDiscovery interface + Discover func() + type ProtocolDriver interface + AddDevice func(deviceName string, protocols map[string]models.ProtocolProperties, ...) error + HandleReadCommands func(deviceName string, protocols map[string]models.ProtocolProperties, ...) ([]*CommandValue, error) + HandleWriteCommands func(deviceName string, protocols map[string]models.ProtocolProperties, ...) error + Initialize func(lc logger.LoggingClient, asyncCh chan<- *AsyncValues, ...) error + RemoveDevice func(deviceName string, protocols map[string]models.ProtocolProperties) error + Stop func(force bool) error + UpdateDevice func(deviceName string, protocols map[string]models.ProtocolProperties, ...) error