This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MQTT Connect Error: -95 in nrf9160: AWS_IoT sample

Hi,

I have been trying to run nrf9160: AWS_IoT sample on Thingy91 but have been getting the following output in the serial terminal: 

I couldn't figure out what mqtt_connect, error: -95 actually means since it is not present in the following: https://github.com/intel/zephyr/blob/master/lib/libc/minimal/include/errno.h

Can someone please help me figure out what this error actually means?

Thank you.

Parents Reply Children
  • Hello,

    So after retracing my steps and the AWS_IoT documentation, I was able to establish a connection with AWS_IoT core but there was a problem. My nrf9160dk was just resetting again and again and I could see the following output on the console: 

    Can you please help me figure out why this is happening and how can I debug this issue?

    Thank you.

  • Have you edited the sample in any way, other than what the documentation states? Added anything to the sample? 

    The GNU Arm Embedded Toolchain includes a tool (arm-none-eabi-addr2line.exe) which you can use to find the faulting instruction on address 0x0002d65c

    arm-none-eabi-addr2line.exe -e zephyr.elf 0x0002d65c

    Where zephyr.elf is found under aws_iot\build\zephyr\zephyr.elf

    You may also find some answers here.

    Are you building for secure or non-secure?

    Kind regards,
    Øyvind

  • I haven't modified the sample apart from what had been stated in the documentation. Didn't add anything from myself.

    I was building for non-secure.

    I will try to see the faulty instruction from the information you provided but in the meantime I had setup Cloud Client sample to communicate with the AWS IoT Core and it seems to be working fine for me.

Related