I am trying to connect an arduino to Watson IoT. With the following command:
mqtt.connect(0, "d6acq3.messaging.internetofthings.ibmcloud.com",1883,"d:d6acq3:Arduino_Helligkeit:1234567890","use-token-auth","<as it was provided>");
This is the lib I use for MQTT and where the connect command is specified as follows:
bool connect (int id, String brooker, unsigned int port, String deviceId);
bool connect ([s.o], String userName , String password);
On the Watson Platform I see the following messages in my device´s connection log:
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
Thanks in advance for any help to get this working.