E: mqtt_connect, error; -111 when trying to connect nRF9160 to AWS Cloud

Hi,

I'm facing the mqtt error shown in the image below "E: mqtt_connect, error; -111" when I try to establish connection between the nRF9160 DK and AWS Cloud. I've double checked the certificates that I uploaded and there doesn't seem to be any errors in that.

I am using the aws iot sample from this github: https://github.com/nrfconnect/sdk-nrf/tree/main/samples/nrf9160/aws_iot

I also tried the AT command: "AT+CPMS?" and have included the output for that in the second picture. 

I have included two log files: Before reset and after reset log files.

Please help with this issue.

Parents
  • Hi Swathi,

    Modem trace file could provide more information on what is wrong. In order to collect modem traces, open nRF Connect for Desktop and choose Trace Collector v2 from the list of available applications. You can follow the documentation on how to enable tracing in the application. After programming the device, in the Trace Collector v2 application, choose PCAP option and press "Start tracing". You can then open your saved pcap file to have better insight into desired communication. 

    There is also another case with the same question which might be useful to you. Here is the link to the case.

    Best regards,
    Dejan


Reply
  • Hi Swathi,

    Modem trace file could provide more information on what is wrong. In order to collect modem traces, open nRF Connect for Desktop and choose Trace Collector v2 from the list of available applications. You can follow the documentation on how to enable tracing in the application. After programming the device, in the Trace Collector v2 application, choose PCAP option and press "Start tracing". You can then open your saved pcap file to have better insight into desired communication. 

    There is also another case with the same question which might be useful to you. Here is the link to the case.

    Best regards,
    Dejan


Children
Related