docs: add header to example with execution instructions
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
dc1ea629b5
commit
25d7956cfb
|
@ -1,8 +1,9 @@
|
|||
// TO RUN:
|
||||
// go run ./examples/mqtt_driver_ping.go tcp://test.mosquitto.org:1883
|
||||
// OR
|
||||
// go run ./examples/mqtt_driver_ping.go <SERVER>
|
||||
//
|
||||
// EXAMPLE:
|
||||
// go run ./examples/mqtt_driver_ping.go ssl://iot.eclipse.org:8883
|
||||
|
||||
//
|
||||
package main
|
||||
|
||||
import (
|
||||
|
@ -42,6 +43,7 @@ func main() {
|
|||
|
||||
robot := gobot.NewRobot("mqttBot",
|
||||
[]gobot.Connection{mqttAdaptor},
|
||||
[]gobot.Devices{helloDriver, holaDriver},
|
||||
work,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue