Documentation ¶
Overview ¶
Publish a message to a MQTT broker and wait for the message to be published. You can choose to use the online broker or the local one. The message is published to the topic "topic/secret" and the payload is the message "1: Hello Gopher!". e.g. $ go run mqtt_publisher.go -broker=local
Click to show internal directories.
Click to hide internal directories.