AWS IoT Core Connection

Modem Firmware: mfw_nrf91x1_2.0.3

SDK Version: 3.1.1

nrf9151

Using the aws_iot sample as a reference, I'm trying to get my device to connect to an IoT instance that I've confirmed operational using mosquitto.  Turning on some of the debug I'm getting;

[00:00:41.125,183] <dbg> aws_iot: aws_iot_connect: No hostname provided, using Kconfig value: a1bl2ugg7axw2v-ats.iot.us-east-1.amazonaws.com
[00:00:41.125,427] <dbg> mqtt_helper: broker_init: Resolving IP address for a1bl2ugg7axw2v-ats.iot.us-east-1.amazonaws.com
[00:00:42.141,967] <dbg> mqtt_helper: broker_init: IPv4 Address found 18.211.66.210 (AF_INET)
[00:00:42.141,998] <dbg> mqtt_helper: client_connect: Using build-time provided security tag value from Kconfig
[00:00:42.142,059] <dbg> mqtt_helper: mqtt_state_set: State transition: MQTT_STATE_DISCONNECTED --> MQTT_STATE_TRANSPORT_CONNECTING
[00:00:46.932,403] <dbg> mqtt_helper: mqtt_state_set: State transition: MQTT_STATE_TRANSPORT_CONNECTING --> MQTT_STATE_TRANSPORT_CONNECTED
[00:00:46.932,464] <dbg> mqtt_helper: mqtt_state_set: State transition: MQTT_STATE_TRANSPORT_CONNECTED --> MQTT_STATE_CONNECTING
[00:00:46.932,495] <dbg> mqtt_helper: client_connect: Using send socket timeout of 60 seconds
[00:00:46.932,525] <dbg> mqtt_helper: mqtt_helper_connect: MQTT connection request sent
[00:00:46.932,922] <dbg> mqtt_helper: mqtt_helper_poll_loop: Took connection_poll_sem
[00:00:46.932,952] <dbg> mqtt_helper: mqtt_helper_poll_loop: Starting to poll on socket, fd: 3
[00:00:46.932,952] <dbg> mqtt_helper: mqtt_helper_poll_loop: Polling on socket fd: 3
[00:00:49.479,522] <dbg> mqtt_helper: mqtt_evt_handler: MQTT_EVT_DISCONNECT: result = -128
[00:00:49.479,583] <dbg> mqtt_helper: mqtt_state_set: State transition: MQTT_STATE_CONNECTING --> MQTT_STATE_DISCONNECTED
[00:00:49.479,614] <dbg> aws_iot: on_disconnect: MQTT client disconnected: result = -128
[00:00:49.479,644] <inf> aws: AWS_IOT_EVT_DISCONNECTED
[00:00:49.479,644] <inf> aws: AWS Disconnected
[00:00:49.479,675] <err> mqtt_helper: Cloud MQTT input error: -128

I'm trying to get modem tracing working but the snippet breaks under my static partition manager setup and changing it would require some redo of my nvs section.  so I'm a bit stuck on that at the moment.  I'm hoping this is a typical issue even though i haven't found the exact situation in a ticket search.  I'm sure it's a simple setup problem and I was hoping for some basic suggestions or perhaps some alternate means of setting up modem tracing.

Related