Other Parts Discussed in Thread: CC3200, UNIFLASH
Hello everyone,
I am working on CC3220SF launchpad.
For one of my application we need MQTT protocol(CC3220SF launchpad- acts as Mqtt client) to connect to the Broker and exchange message with mobile app(smatphone) which acts as an Mqtt client on other side.
I am building my application on the example MQTTclient Demo application provided( http://dev.ti.com/tirex/explore/content/simplelink_academy_cc32xxsdk_3_20_02_00/modules/wifi/wifi_mqtt/wifi_mqtt.html#mqtt-client-demo) but as secured client option , I am not using iot.eclipse.org as broker instead we are using AWS service for which we have created aws account and obtained required certificates.
Can this be achieved? AWS has 3 main certificates unlike iot.eclipse used only 1 certificated in example code?
Can anyone please give me an insight on this about how to work it out?
I tried by adding the certificates and flashed the mqtt client example code.but i getting following error.
Connection to broker failed, Error code: -111<\n><\r>BRIDGE DISCONNECTION<\n><\r><\n><\r>On-board Client Disconnected<\n><\r><\r><\n>.<\r><\n>TO Complete - Closing all threads and resources<\r><\n>Unsubscribed from the topic /Broker/To/cc32xx<\r><\n>Unsubscribed from the topic /cc3200/ToggleLEDCmdL1<\r><\n>Unsubscribed from the topic /cc3200/ToggleLEDCmdL2<\r><\n>Unsubscribed from the topic /cc3200/ToggleLEDCmdL3<\r><\n><\n><\r> Client Stop completed<\r><\n>
I added the certificates using UNIflash software in Development mode -Files >Userfiles
add the files and using the Burn option-> Development mode >Generate Image-> Program Image(Create and Program) programmed into CC3220sf and after that using CCS i dumped my example code where i have added theSERVER ADDRESS and secure file names
#define CLIENT_NUM_SECURE_FILES 3
char *Mqtt_Client_secure_files[CLIENT_NUM_SECURE_FILES] = {"****.pem","****pem.crt","****.pem.key"};
i have referred (http://dev.ti.com/tirex/explore/content/simplelink_academy_cc32xxsdk_3_20_02_00/modules/wifi/wifi_mqtt/wifi_mqtt.html#mqtt-secure-client-demo
Regards,
Sanath Rai