AWS_IoT mqtt_connect,error: -111

Hi all,

I'm trying to mix aws_iot sample and soft_sim sample from onomondo but I have an issue, I always get this error : <err> aws_iot: mqtt_connect, error: -111. I've took the soft8sim sample from onomondo add I've added aws functions from aws_iot sample

I've followed this link to add cert and create my thing on AWS. Here is the full log coming from terminal :

---- Opened the serial port /dev/ttyACM0 ----
*** Booting nRF Connect SDK v2.5.2 ***
[00:00:01.412,902] <inf> softsim_sample: SoftSIM sample started.
[00:00:01.413,024] <inf> softsim_sample: Initializing modem library
[00:00:01.413,055] <err> lte_lc: Modem library init error: -1, lte_lc not initialized
[00:00:01.420,166] <inf> softsim_sample: Connecting to LTE network
+CEREG: 2,"9682","01628305",7
[00:00:09.615,112] <inf> softsim_sample: LTE cell changed: Cell ID: 23233285, Tracking area: 38530
+CSCON: 1
[00:00:09.676,727] <inf> softsim_sample: RRC mode: Connected

+CEREG: 5,"9682","01628305",7,,,"11100000","11100000"
[00:00:15.948,852] <inf> softsim_sample: Network registration status: Connected - roaming
[00:00:15.948,974] <inf> softsim_sample: Connected to LTE network
[00:00:15.948,974] <inf> softsim_sample: Init aws iot client.
[00:00:15.949,279] <inf> softsim_sample: AWS_IOT_EVT_CONNECTING
[00:00:15.950,500] <inf> softsim_sample: PSM parameter update: TAU: 3240, Active time: -1
[00:00:16.417,449] <err> aws_iot: mqtt_connect, error: -111
[00:00:16.417,480] <inf> softsim_sample: AWS_IOT_EVT_CONNECTING
+CSCON: 0
[00:00:21.937,622] <inf> softsim_sample: RRC mode: Idle

It' seem that is a cert issue, but I think I've done it well...

EDIT :  resolve it was a cert issue with device key

Related