AWS MQTT Connection Issue on nrf7002 kit

Hi,

I am not able to connect to AWS MQTT (using sample code for AWS ) . I am getting Error code -11 every time . CA cart and keys added in code. 

Same keys are working fine in MQTTX windows app.

MQTT i.e without keys normal TLS level is working ok .

Parents Reply Children
  • Hi,

    I am using Aws iot sample prog.

    below is the log and keys compiled 

    *** Booting nRF Connect SDK v3.0.2-89ba1294ac9b ***
    *** Using Zephyr OS v4.0.99-f791c49f492c ***
    [00:00:00.236,206] <inf> aws_iot_sample: The AWS IoT sample started, version: v1.0.0
    [00:00:00.236,236] <inf> aws_iot_sample: Bringing network interface up and connecting to the network
    [00:00:00.237,182] <inf> wifi_supplicant: wpa_supplicant initialized
    uart:~$ wifi connect -s "MKKR" -p "*****" -k 1
    Connection requested
    Connected
    [00:01:20.305,725] <inf> aws_iot_sample: Network connectivity established
    [00:01:25.305,786] <inf> aws_iot_sample: Connecting to AWS IoT
    [00:01:35.506,378] <err> mqtt_helper: mqtt_connect, error: -116
    [00:01:35.506,408] <err> aws_iot: mqtt_helper_connect, error: -116
    [00:01:35.506,408] <err> aws_iot_sample: aws_iot_connect, error: -116
    [00:01:35.506,408] <err> aws_iot_sample: Fatal error! Rebooting the device.

  • Hi,

     

    Did you follow the sequence outlined in the "nRF70: Keys generated by AWS" tab in this part of the docs?

    https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/aws_iot.html#aws-setup-and-configuration

     

    Your ca-cert.pem shall be the Amazon root CA 1: https://www.amazontrust.com/repository/AmazonRootCA1.pem

     

    Kind regards,

    Håkon

  • Hi

    I already using the same keys in telit LTE MODULE and no issue is there

  • Hi,

     

    Thank you for clarifying.

    Q1: Could you share which board you are configuring for? Is it nrf7002dk/nrf5340/cpuapp/ns ? 

    Q2: Could you run the firmware with mbedtls in a debug mode and share the verbose output?

     

    Kind regards,

    Håkon