guycs 1 Posted July 30, 2017 Share Posted July 30, 2017 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]; char mqttAddr[IBMSERVERURLLEN]; 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: Quote You're connected to the network Waiting for an ip address ..... IP Address obtained: 192.168.0.9 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 Quote 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? Thanks PS: I am able to activate the quickstart version Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.