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 .
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 .
Hi,
Q1: I assume you are using samples/net/aws_iot sample?
Q2: Could you share the full log output?
Q3: Have you followed the setup as outlined here? https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/aws_iot.html#aws-setup-and-configuration
Remember to select the tab "nRF70: Keys generated by AWS".
Kind regards,
Håkon
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?
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?
CONFIG_LOG=y CONFIG_MBEDTLS_DEBUG=y CONFIG_MBEDTLS_SSL_DEBUG_ALL=y CONFIG_MBEDTLS_LOG_LEVEL_DBG=y CONFIG_MBEDTLS_DEBUG_C=y CONFIG_MBEDTLS_DEBUG_LEVEL=4 # Handle the large influx of prints CONFIG_LOG_BUFFER_SIZE=16384
Kind regards,
Håkon
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?
CONFIG_LOG=y CONFIG_MBEDTLS_DEBUG=y CONFIG_MBEDTLS_SSL_DEBUG_ALL=y CONFIG_MBEDTLS_LOG_LEVEL_DBG=y CONFIG_MBEDTLS_DEBUG_C=y CONFIG_MBEDTLS_DEBUG_LEVEL=4 # Handle the large influx of prints CONFIG_LOG_BUFFER_SIZE=16384
Kind regards,
Håkon