Hi,
I am using QCA4020(CDB20) Development kit with SDK 2.0. I need function of mqttc with TLS support , do you have any example or demo code that I can follow it up to build my application?
Regard,
Javi Yang.
Hi,
I am using QCA4020(CDB20) Development kit with SDK 2.0. I need function of mqttc with TLS support , do you have any example or demo code that I can follow it up to build my application?
Regard,
Javi Yang.
Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.
We have multiple demos using mqttc connecting with TLS support.
Kindly refer to Onboard_demo / QCLI_demo for more information.
More information is available in sections " Onboard demo with cloud mode" and "6.3.16 AWS Demo" of document "QCA402x (CDB2x) Development Kit User Guide".
Also, you can refer to below source files.
[target]\quartz\demo\Onboard_demo\src\ecosystem\aws\aws_run.c
[target]\quartz\demo\QCLI_demo\src\ecosystem\aws\shadow_sample\shadow_sample.c
Yes, We can use the same connections parametes to establish connection with MQTT broker.
However, the example demo uses sample shadow communication, if you want to update MQTT broker refer to subscribe_sample_publish demo in aws_iot_Device_sdk as we need to call appropriate aws_iot_mqtt_xx() calls.