我在关注http://m2m.demos.ibm.com/iotstarter.html
我已经将我的手机连接到IoT服务,并且可以在WebUI中看到消息,但是提供的Node-Red flow似乎无法连接到IoT数据。我已将debug节点连接到IoT In节点,但看不到任何消息。
身份验证类型为'Bluemix‘,现在更改为'Quickstart’。这有什么关系吗?
\nmsg.deviceType = msg.payload.d.deviceType;\nmsg.format = \"json\";\n\nvar accelZ = msg.payload.d.acceleration_z;\nvar r=255.0;\nvar b= 0.0;\nvar g=0.0;\n if (accelZ > 0) {\n\tg = 255.0;\n} else if (accelZ < 0) {\n\tr = 255.0;\n} else {\n\tr = 104;\n\tg = 109;\n\tb = 115;\n}\na = 1.0;\n\t\nmsg.eventOrCommandType =\“;\nmsg.payload\”颜色\"r\":r,\"b\":b,\"g\":g,\“alpha\”:a}});\n\n返回消息;",“输出”:1,"x":287,"y":313,"z":"3f16d263.e01496",“wire”:[“56d70240.c2bd14”]},{"id":"56d70240.c2bd14","type":"ibmiot out","authentication":"boundService","apiKey":"","outputType":"cmd","deviceId":"AAA","deviceType":"iPhone","eventCommandType":"text","format":"json",“数据”:“{\”d\“:{\”值\“:\”文本\“}”,“名称”:“IBM IoT应用程序输出”,“服务”:“已注册”,"x":469,"y":313,"z":"3f16d263.e01496",“wire”:[]}]
发布于 2016-03-14 21:28:07
教程中的说明根据在步骤2中创建的设备填充ibmiot输出节点的属性。您应该包括deviceID、API键等,以便与您注册到组织的设备相匹配。

如果您需要进一步的帮助,请让我知道您的6字符组织。
https://stackoverflow.com/questions/35932138
复制相似问题