2017-10-13から1日間の記事一覧

gobotでmqtt

本文執筆中 package main import ( "gobot.io/x/gobot" "gobot.io/x/gobot/platforms/mqtt" "fmt" "time" ) func main() { mqttAdaptor := mqtt.NewAdaptor("tcp://{{YOURIP}}:1883", "pinger") work := func() { mqttAdaptor.On("hello", func(msg mqtt.Mes…