Part Number:CC3200-LAUNCHXL
Tool/software: Code Composer Studio
Hello,
I am trying to run the CC3200 - MQTT Client example and I can't get it to work. Here is what I've done so far:
1. Followed the steps given on https://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc31xx_cc32xx/f/968/t/546106 with the latest versions of SDK and Service Pack:
- With Uniflash - Format SFLASH
- With Uniflash - Program Service Pack
- Reset Board
- Create new workspace in CCS (or IAR)
- Import MQTT client example
- Change server from messagesight.demos.ibm.com --> iot.eclipse.org
- Change clientId to be unique – e.g. using MAC address : user1 --> user-112233445566 (note that I created my unique ID)
- Change subscribe and publish topics to be unique – e.g. using MAC address : cc3200 --> cc3200-112233445566 (note that I created my unique ID)
- Change common.h for SSID/password (using an open network)
- Build, Connect, Load and Run Application
- All that didn't work
- Followed the example http://processors.wiki.ti.com/index.php/CC3200_MQTT_Client with the new broker (iot.eclipse.org) and tried to connect using the http://m2m.demos.ibm.com/mqttclient/ website, but I can't even connect to the broker. I can connect using MQTTlens though. On both websites I changed the client ID to make sur in matches the one in my code, same for the topics. Yet, nothing is working.
- Went through the known issues and changed the appropriate lines of code.
The message I'm getting on teraterm is this:
---------------------------------------------------------------------------------------------------------------------------
Host Driver Version: 1.0.1.11
Build Version 2.9.0.0.31.1.4.0.1.1.0.3.37
Device is configured in default state
Started SimpleLink Device: STA Mode
[WLAN EVENT] STA Connected to the AP: CC3200hotspot , BSSID: 14:30:c6:7:a0:8d
[NETAPP EVENT] IP acquired by the device
Device has connected to CC3200hotspot
Device IP Address is 192.168.43.25
Version: Client LIB 1.4.0, Common LIB 1.5.0.
C: Alloc for 1 200246e4
Broker connect fail for conn no. 1
Exiting the Application
---------------------------------------------------------------------------------------------------------------------------
The only thing I found to fix this problem is to change the broker, as I mentionned I did it and nothing changed. I still have the same message.
Does anyone have an idea on how to get the example to work? I tried multiple borker but since I can't connect to even iot.eclipse.org from the http://m2m.demos.ibm.com/mqttclient/. I also tried http://mqtt-helper.mybluemix.net/ but I get this error: Failed to connect to iot.eclipse.org:1883. Code: 7, Message: AMQJS0007E Socket error:undefined.
Thanks for your help !