watson-iot

Can not connect to Watson IoT - connection refused


I'm following these instructions using the orgID given by the Watson IoT platform.

I then created the MQ Client in Node-RED using this orgID and d:orgID:mydevicetype:mydevicedid using arbitrary mydevicetype and mydevicedid.

These are the Node-RED error messages:

"Error: Connection refused: Not authorized"
"Error stopping node: Error: [BaseClient:disconnect] Client is not connected"

I then created a device on the Watson IoT platform using the mydevicetype and mydevicedid and eas provided a token. I got the same error using use-token-auth as the user and the token as password.

Device log on the Watson IoT platform:

Invalid userID () for device auth: 
ClientID='d:orgID:mydevicetype:mydevicdeid', 
ClientIP=169.50.40.xxx 

Solution

  • Can you try:

    Looks like not much different from what you've tried, perhaps your are not using a secure (mqtts) connection ?