From 25d7956cfbaa3795314e337d465669d32107c7b8 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Tue, 31 Jan 2017 21:14:09 +0100 Subject: [PATCH] docs: add header to example with execution instructions Signed-off-by: deadprogram --- examples/mqtt_driver_ping.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/mqtt_driver_ping.go b/examples/mqtt_driver_ping.go index f7ebf058..6f46e816 100644 --- a/examples/mqtt_driver_ping.go +++ b/examples/mqtt_driver_ping.go @@ -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 +// +// 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, )