【发布时间】:2016-03-11 04:18:35
【问题描述】:
我关注http://m2m.demos.ibm.com/iotstarter.html
我已将手机连接到 IoT 服务,并且可以在 WebUI 中看到消息,但提供的 Node-Red 流似乎无法连接到 IoT 数据。
我已将调试节点连接到 IoT In 节点,但没有看到任何消息。
身份验证类型为“Bluemix”,现在更改为“快速入门”。有什么关系吗?
[{"id":"2a8baa.ecd60456","type":"comment","name":"示例 2:IoT Starter 加速到颜色流","info":"","x": 196,"y":275,"z":"3f16d263.e01496","wires":[]},{"id":"b83ddfdb.7b3368","type":"ibmiot in","authentication": "boundService","apiKey":"","inputType":"evt","deviceId":"","applicationId":"","deviceType":"+","eventType":"accel"," commandType":"","format":"json","name":"IBM IoT App In","service":"registered","allDevices":true,"allApplications":"","allDeviceTypes": true,"allEvents":false,"allCommands":"","allFormats":false,"x":117,"y":313,"z":"3f16d263.e01496","wires":[[" 64ebf370.5a0b5c"]]},{"id":"64ebf370.5a0b5c","type":"function","name":"Handle accel","func":"msg.deviceId = msg.payload.d .deviceId;\nmsg.deviceType = msg.payload.d.deviceType;\nmsg.format = \"json\";\n\nvar accelZ = msg.payload.d.acceleration_z;\nvar r = 0.0;\nvar b = 0.0;\nvar g = 0.0;\nif (accelZ > 0) {\n\tg = 255.0;\n} else if (accelZ
【问题讨论】:
-
在 Watson IoT 平台中,quickstart 的处理方式与注册设备不同,并且不会经过相同的身份验证过程。您能否提供有关您的代码的更多信息,例如您的 IoT 节点的配置?