Part Number: CC3220
Hiya,
I am working with a CC3220MODASF development board and the mqtt_client for freeRTOS & gcc that can be found via the code composer studio & resource explorer. I have performed the necessary alterations to the code to comply with my local hardware and such:
- edited network_if.h to connect to a local access point, a phone hotspot (I am in an enterprise environment, and do not have a more robust setup available to something such as the CC3220). The connection goes through well, and is consistent and stable.
- edited mqtt_client_app with the relevant settings for my broker, running via mosquitto on a Fedora VM, Windows host.
The three "devices": CC3220, Windows, and Linux share the same local network. A Windows client can easily subscribe to the Linux broker, however, what happens with the CC3220 is:
************************************************* CC32xx MQTT client Application ************************************************* Device came up in Station mode [WLAN EVENT] STA Connected to the AP: Saana , BSSID: 2:1a:11:fd:85:f1 [NETAPP EVENT] IP acquired by the device Device has connected to Saana Device IP Address is 192.168.43.54 .........Connection to broker failed, Error code: -111 BRIDGE DISCONNECTION On-board Client Disconnected . TO Complete - Closing all threads and resources Unsubscribed from the topic /Broker/To/cc32xx Unsubscribed from the topic /cc3200/ToggleLEDCmdL1 Unsubscribed from the topic /cc3200/ToggleLEDCmdL2 Unsubscribed from the topic /cc3200/ToggleLEDCmdL3 Client Stop completed reopen MQTT # 73
...or, in short, I get error code -111 every time I try to connect to my broker. The "stock" example project from TI connects to a remote broker just fine. Searching for the source or proposed solution for this error did not yield much results, so I am very open to suggestions.