Serial lte modem mqtt connect timeout problem

Hi Nordic,

    I am using the nrf52840 as the host and the nRF9160 as the modem with the serial_lte_modem library.

    Normally, when the nrf52840 sends an MQTT connection request (AT#XMQTTCON=1), if incorrect broker parameters are configured, modem_cmd_send() will return the result after the timeout period. However, through my testing, I found that if the timeout is set to more than 170 seconds, modem_cmd_send() will only return after 170 seconds.

    I read the document and it didn't mention the specific timeout duration, which confuses me. I hope someone can answer my question. 

Parents Reply
  • Hi simonm

        I'm sorry for my late reply. The version of SLM is built based on ncs2.9.2.

        I connected to the correct broker IP and port, but added an incorrect SSL certificate, and mqtt_connect() waited for a while before returning the result. I just want to know if Zephyr has a connection timeout handling for the interior of mqtt_connect, and if so, what the timeout period is.

    Best regards,

    Niuniu

        

Children
Related