Versions in this module Expand all Collapse all v0 v0.0.1 Dec 1, 2019 Changes in this version + var Prefix = "$hw/events/device/" + var StateUpdateSuffix = "/state/update" + var TwinCloudUpdateSuffix = "/twin/cloud_updated" + var TwinGetResultSuffix = "/twin/get/result" + var TwinGetSuffix = "/twin/get" + var TwinUpdateSuffix = "/twin/update" + func Init(ipAddress, id, user, password string) + func Update(value string) + type BaseMessage struct + EventID string + Timestamp int64 + type DeviceStateUpdate struct + State string + type DeviceTwinUpdate struct + Twin map[string]*MsgTwin + type DeviceTwinUpdateDelta struct + Delta map[string]string + Twin map[string]*MsgTwin + type MsgTwin struct + Actual *TwinValue + ActualVersion *TwinVersion + Expected *TwinValue + ExpectedVersion *TwinValue + Metadata *TypeMetadata + Optional *bool + type Token interface + Error func() error + Wait func() bool + WaitTimeout func(time.Duration) bool + type TwinValue struct + Metadata *ValueMetadata + Value *string + type TwinVersion struct + CloudVersion int64 + EdgeVersion int64 + type TypeMetadata struct + Type string + type ValueMetadata struct + Timestamp int64