我正在尝试将 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的库 ,其中连接命令指定如下:
bool connect (int id, String brooker, 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
提前感谢您提供任何帮助以使其正常工作。