Jump to content

Connecting CC3200 to IBM Watson IoT Broker doesn't work

Recommended Posts

Hello, I am trying to connect the CC3200 to the Watson IoT by using the CC3200 RegisteredWIFI example.

I have done it according to the following recipe including modifying the OrganizationID, typeID and deviceID. and authentication token to fit the device that was created on the Watson IoT

char organization[] = "39hbk4";              //"<replacewithorg>";
char typeId[] = "iotsample-ti-energia";
char pubtopic[] = "iot-2/evt/status/fmt/json";
char subTopic[] = "iot-2/cmd/+/fmt/json";
char deviceId[] = "000000000000";
char clientId[64];

int mqttPort = 1883;

// Authentication method. Should be use-toke-auth
// When using authenticated mode
char authMethod[] = "use-token-auth";
// The auth-token from the information above
char authToken[] = "6cigl3dCHPN3DGec3Q";  

But the connection is failing as client.connect(connectData) returns -1 

Here is what I am getting on the serial monitor:


You're connected to the network
Waiting for an ip address
IP Address obtained:
MAC Address: F4:5E:AB:A3:E4:19
deviceId: f45eaba3e419
Connecting to 39hbk4.messaging.internetofthings.ibmcloud.com:1883
With client id: d:39hbk4:iotsample-ti-energia:f45eaba3e419
ipstack connect rc: 1
ipstack connect rc: 0
connected to the cloud
client connect rc: 5
client connect rc: -1

While looking for an answer I have seem this post from TI support engineer saying there may be some kind of change from IBM side that breaks the connection



Not sure if this is a temporary server down or whether IBM changed something in the requirements (for example, only secured connection).

In any way, I tried the same code with a different MQTT broker who is working with the same port 1883 and it works (at least the connection).

You can try on your side as well. It is "iot.eclipse.org".



Did anyone succeeded to make it work and can help? 


PS: I am able to activate the quickstart version

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...