Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Conn *nats.Conn EncodedConn *nats.EncodedConn }
Client represents a Thigns client, holding the decoding and connection to the NATS server.
type Message ¶
type Message struct { // Commands []Command `json:"commands,omitempty"` // Device string `json:"id,omitempty"` // Events []Event `json:"events,omitempty"` Topic string `json:"topic,omitempty"` // sketch stats Sketch string `json:"sketch,omitempty"` // wifi stats BSSID string `json:"bssid,omitempty"` IP string `json:"ip,omitempty"` RSSI int `json:"rssi,omitempty"` SSID string `json:"ssid,omitempty"` // air stats Humidity float32 `json:"humidity,omitempty"` Temperature float32 `json:"temperature,omitempty"` HeatIndex float32 `json:"heatindex,omitempty"` }
type MessageHandler ¶
type MessageHandler func(chan Message)
Click to show internal directories.
Click to hide internal directories.