docs: add header to example with execution instructions

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2017-01-31 21:14:09 +01:00
parent dc1ea629b5
commit 25d7956cfb
1 changed files with 5 additions and 3 deletions

View File

@ -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,
)