Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
NewPublisher instantiates a MQTT publisher.
It connects to `mqttUrl` with `username` and `password` if specified. TopicRoot will be used as prefix of topic for all MQTT messages.
func (*Publisher) Connect ¶
Connect connects to the MQTT server;
The Publisher must have been instantiated first using NewPublisher.
func (*Publisher) Disconnect ¶
func (p *Publisher) Disconnect()
Click to show internal directories.
Click to hide internal directories.