Connect to MQTT using M66

Hi All,

I’d received the following files from our FAE example_mqtt.c, ril_system.c, ril_urc.c using which we can add MQTT support to M66_OpenCPU_GS3_SDK_V2.4_Eclipse. I want to use it to connect to Google IoT Cloud.
I have 2 questions:

  1. Whether quectel mqtt uses SSL.
  2. How do I provide the private_key.pem in order to make secure connection.

Thanks,
Prakash

Hi prakash:
According to what you mean, you should link to an MQTT security server. Our module supports both MQTT and SSL,You can refer to the related function documentation and package it into a ril library.

Hi,
Thanks for your response. In the file example_mqtt.c, we have following functions to make mqtt connection.
RIL_MQTT_QMTCFG_Ali
RIL_MQTT_QMTOPEN
RIL_MQTT_QMTCONN
My question is whether the above functions handle ssl automatically or we have to do it ourselves.

Thanks!