Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RxDiscoveryMQTT is events topic where service put received MQTT messages from discovery topic RxDiscoveryMQTT = "mqtt:discovery" // RxTelemetryMQTT is events topic where service put received MQTT messages from telemetry topic RxTelemetryMQTT = "mqtt:telemetry" // RxCommandsMQTT is events topic where service put received MQTT messages from command topic RxCommandsMQTT = "mqtt:commands" // RxStatusesMQTT is events topic where service put received MQTT messages from status topic RxStatusesMQTT = "mqtt:statuses" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventMQTT ¶
EventMQTT is MQTT event content
func NewEventMQTT ¶
NewEventMQTT return internal MQTT event representation
type Service ¶
Service is MQTT client service implementation
func NewService ¶
NewService return new service implementation example: https://levelup.gitconnected.com/how-to-use-mqtt-with-go-89c617915774 Official documentation: https://www.emqx.com/en/blog/how-to-use-mqtt-in-golang Tasmota MQTT: https://tasmota.github.io/docs/MQTT/#command-flow
Click to show internal directories.
Click to hide internal directories.