初めてWatson IoT Platformを使ってみよう、というかたのためのガイドです。
Watson IoT Platformを使ってみるでIoTアプリを準備しました。
#Node-REDからQuickstartへpublishしてみます
- Node-REDのフローをコピーする方法を参照して以下のフローをコピペします。
Node-REDからQuickstartへpublish
[{"id":"25299f9e.3b6c58","type":"ibmiot in","z":"36890dfe.1ec31a","authentication":"quickstart","apiKey":"","inputType":"evt","deviceId":"001122334455","applicationId":"","deviceType":"+","eventType":"+","commandType":"","format":"json","name":"IBM IoT","service":"quickstart","allDevices":"","allApplications":"","allDeviceTypes":true,"allEvents":true,"allCommands":"","allFormats":"","x":510,"y":240,"wires":[["ee533a9b.228c48"]]},{"id":"ee533a9b.228c48","type":"debug","z":"36890dfe.1ec31a","name":"","active":true,"console":"false","complete":"false","x":670,"y":240,"wires":[]},{"id":"9a1895de.b51ed8","type":"mqtt out","z":"36890dfe.1ec31a","name":"","topic":"iot-2/evt/status/fmt/json","qos":"","retain":"","broker":"9ce74b4e.cb3c5","x":710,"y":180,"wires":[]},{"id":"f00fc92.52b2438","type":"inject","z":"36890dfe.1ec31a","name":"","topic":"","payload":"{ \"temp\" : \"25\", \"humidity\" : \"50\"}","payloadType":"str","repeat":"","crontab":"","once":false,"x":510,"y":180,"wires":[["9a1895de.b51ed8"]]},{"id":"9ce74b4e.cb3c5","type":"mqtt-broker","z":"36890dfe.1ec31a","broker":"quickstart.messaging.internetofthings.ibmcloud.com","port":"1883","tls":null,"clientid":"d:quickstart:myThing:001122334455","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willRetain":null,"willPayload":"","birthTopic":"","birthQos":"0","birthRetain":null,"birthPayload":""}]