After more than a week of trying different options, settings and changes my AWS_IoT app for nRF9161 is not working.
All I get on Serial monitor is this:
*** Booting My Application v2.1.0-dev-4594a8693738 ***
*** Using nRF Connect SDK v2.8.0-a2386bfc8401 ***
*** Using Zephyr OS v3.7.99-0bc3393fb112 ***
*** Booting nRF Connect SDK v2.8.0-a2386bfc8401 ***
*** Using Zephyr OS v3.7.99-0bc3393fb112 ***
[00:00:00.251,617] <inf> aws_iot_sample: The AWS IoT sample started, version: v1.0.0
[00:00:00.251,647] <inf> aws_iot_sample: Bringing network interface up and connecting to the network
I've added my AWS cridentials, which are working on another Tiny GSM Modem project.
From a number of dicussions and references, I've added all these additional options in prj.conf with no success.
community.circuitdojo.com/.../4
-------(prj.conf)-------
# General
CONFIG_LOG=y
CONFIG_LOG_BUFFER_SIZE=2048
CONFIG_HW_ID_LIBRARY=y
CONFIG_ASSERT=y
CONFIG_JSON_LIBRARY=y
CONFIG_REBOOT=y
# Heap and stacks
CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
# Network
CONFIG_NETWORKING=y
CONFIG_NET_NATIVE=y
# CONFIG_NET_IPV4=y
CONFIG_NET_CONNECTION_MANAGER=y
# CONFIG_CLOUD_API=y
# AWS IoT library
CONFIG_AWS_IOT=y
CONFIG_AWS_IOT_CLIENT_ID_STATIC="MyIoTDevice"
CONFIG_AWS_IOT_BROKER_HOST_NAME="xxxxxxxxxxxxxx-ats.iot.eu-west-2.amazonaws.com"
CONFIG_AWS_IOT_TOPIC_UPDATE_DELTA_SUBSCRIBE=y
CONFIG_AWS_IOT_TOPIC_GET_ACCEPTED_SUBSCRIBE=y
CONFIG_AWS_IOT_TOPIC_GET_REJECTED_SUBSCRIBE=y
# CONFIG_AWS_IOT_SEC_TAG="12345"
# Modem and PDN Configuration
CONFIG_LTE_LINK_CONTROL=y
CONFIG_PDN=y
CONFIG_PDN_DEFAULT_APN="internet"
# CONFIG_LTE_NETWORK_APN="internet"
# CONFIG_PDN_DEFAULT_APN="nbiot.vodacom.za"
# CONFIG_PDN_DEFAULT_APN="lpwa.vodafone.iot"
# Logging
CONFIG_LOG=y
#CONFIG_LOG_MODE_IMMEDIATE=y
#CONFIG_LOG_LEVEL_DBG=y
CONFIG_LOG_DEFAULT_LEVEL=3
# MQTT helper library
CONFIG_MQTT_HELPER=y
CONFIG_MQTT_HELPER_SEC_TAG=201
CONFIG_MQTT_HELPER_LAST_WILL=y
CONFIG_MQTT_HELPER_STACK_SIZE=4096
# LTE Link Controller
# Enable LTE Link Control
CONFIG_LTE_LINK_CONTROL=y
# CONFIG_LTE_AUTO_INIT_AND_CONNECT=y
CONFIG_LTE_NETWORK_MODE_LTE_M=y
CONFIG_NRF_MODEM_LIB=y
# MQTT - Maximum MQTT keepalive timeout specified by AWS IoT Core
CONFIG_MQTT_KEEPALIVE=1200
CONFIG_MQTT_CLEAN_SESSION=y
# community.circuitdojo.com/.../4
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_STREAM_FLASH=y
CONFIG_IMG_MANAGER=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y
-------(main.c)-------
#define MY_CUSTOM_TOPIC_1 "esp/txn"
#define MY_CUSTOM_TOPIC_2 "esp/IoTMsg"
#define MQTT_BROKER_URL "xxxxxxxxxxxxxx-ats.iot.eu-west-2.amazonaws.com"
#define MQTT_BROKER_PORT 8883
#define MQTT_CLIENT_ID "MyIoTDevice"
#define MQTT_USERNAME NULL
#define MQTT_PASSWORD NULL
Please let me know what I'm doing wrong.. why can't I get the sample project up and running.