Documentation ¶
Index ¶
- Constants
- type DeviceActionStatusMessage
- type DeviceAddedMessage
- type DeviceConnectedMessage
- type DevicePropertyChangedMessage
- type ThingActionDescription
- type ThingActionStatusMessage
- type ThingAddedMessage
- type ThingConnectedMessage
- type ThingEventMessage
- type ThingModifyMessage
- type ThingPropertyChangedMessage
- type ThingRemovedMessage
- type Topic
Constants ¶
View Source
const ( SetProperty = "SetProperty" GetDevices = "GetDevices" GetThings = "GetMapOfThings" Pair = "pair" Unpair = "unpair" Pending = "pending" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceActionStatusMessage ¶
type DeviceActionStatusMessage struct { DeviceId string Action actions.ActionDescription }
type DeviceAddedMessage ¶
type DeviceConnectedMessage ¶
type DevicePropertyChangedMessage ¶
type DevicePropertyChangedMessage struct { DeviceId string PropertyName string properties.PropertyDescription }
type ThingActionDescription ¶
type ThingActionDescription struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Input map[string]any `json:"input,omitempty"` Status string `json:"status,omitempty"` TimeRequested string `json:"timeRequested,omitempty"` TimeCompleted string `json:"timeCompleted,omitempty"` }
type ThingActionStatusMessage ¶
type ThingActionStatusMessage struct { ThingId string Action ThingActionDescription }
type ThingAddedMessage ¶
type ThingConnectedMessage ¶
type ThingEventMessage ¶
type ThingEventMessage struct {
ThingId string
}
type ThingModifyMessage ¶
type ThingModifyMessage struct {
ThingId string
}
type ThingRemovedMessage ¶
type ThingRemovedMessage struct {
ThingId string
}
type Topic ¶
type Topic string
const ( ThingAdded Topic = "thingAdded" ThingRemoved Topic = "thingRemoved" ThingConnected Topic = "thingConnected" ThingModify Topic = "thingModify" ThingPropertyChanged Topic = "thingPropertyChanged" ThingEvent Topic = "thingEvent" ThingActionStatus Topic = "thingActionStatus" DeviceAdded Topic = "deviceAdded" DevicePropertyChanged Topic = "devicePropertyChanged" DeviceActionStatus Topic = "deviceActionStatus" DeviceEvent Topic = "deviceEvent" DeviceRemoved Topic = "deviceRemoved" DeviceConnected Topic = "deviceConnected" AdapterAdded Topic = "adapterAdded" PairingTimeout Topic = "pairingTimeout" )
Click to show internal directories.
Click to hide internal directories.