Documentation ¶
Overview ¶
This example simply connects to a MQTT broker and then terminates.
to run: go run ./examples/connect/main.go
The default broker is the publicly available server hosted by the Eclipse foundation, but can be changed by specifying a different host name or IP address with the -server flag.
Click to show internal directories.
Click to hide internal directories.