【发布时间】:2017-02-07 11:28:58
【问题描述】:
我正在尝试将 arduino 连接到 Watson IoT。 使用以下命令:
mqtt.connect(0, "d6acq3.messaging.internetofthings.ibmcloud.com",1883,"d:d6acq3:Arduino_Helligkeit:1234567890","use-token-auth","<as it was provided>");
这是我用于MQTT 的库 其中connect命令指定如下:
bool connect (int id, String *er, unsigned int port, String deviceId);
bool connect ([s.o], String userName , String password);
在 Watson Platform 上,我在设备的连接日志中看到以下消息:
Closed connection from 93.231.145.115.
The topic is not valid: use-token-auth
The topic does not match an allowed rule 07.02.2017 11:58:16
Closed connection from 93.231.145.115.
The topic is not valid: use-token-auth
The topic does not match an allowed rule 2 times in the last 5 minutes 07.02.2017 11:58:16
Closed connection from 93.231.145.115.
The topic is not valid: use-token-auth
The topic does not match an allowed rule 07.02.2017 11:56:03
Closed connection from 93.231.145.115.
The topic is not valid: use-token-auth
The topic does not match an allowed rule 07.02.2017 11:45:36
在此先感谢您提供的帮助。
【问题讨论】:
标签: ibm-cloud watson-iot