Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp-modem: handle SIM card is deactivated (IDFGH-11605) #448

Closed
3 tasks done
marchingband opened this issue Dec 4, 2023 · 10 comments
Closed
3 tasks done

esp-modem: handle SIM card is deactivated (IDFGH-11605) #448

marchingband opened this issue Dec 4, 2023 · 10 comments
Assignees

Comments

@marchingband
Copy link

marchingband commented Dec 4, 2023

Answers checklist.

  • I have read the documentation for esp-protocols components and the issue is not addressed there.
  • I have updated my esp-protocols branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Often times users do not pay their cellular bill on time, and so we get Modem Disconnect from PPP Server. If ex. the bill is then paid, the modem does not automatically reconnect, and requires a reset.

If there is a good way to handle this case, can some example code possibly be provided?

How can I setup a loop to retry the connection to the PPP server?

(I am using BG96)

@github-actions github-actions bot changed the title esp-modem: handle SIM card is deactivated esp-modem: handle SIM card is deactivated (IDFGH-11605) Dec 4, 2023
@david-cermak
Copy link
Collaborator

We already have some examples that retry connecting periodically with some timeout/backoff-time, e.g.

while (!ppp_info->stop_task) {
vTaskDelay(pdMS_TO_TICKS(backoff_time));
if (ppp_info->parent.connected) {
backoff_time = 5000;
continue;
}
// try if the modem got stuck in data mode
ESP_LOGI(TAG, "Trying to Sync with modem");
ret = esp_modem_sync(dce);
if (ret != ESP_OK) {
ESP_LOGI(TAG, "Switching to command mode");
esp_modem_set_mode(dce, ESP_MODEM_MODE_COMMAND);
ESP_LOGI(TAG, "Retry sync 3 times");
for (int i = 0; i < 3; ++i) {
ret = esp_modem_sync(dce);
if (ret == ESP_OK) {
break;
}
vTaskDelay(pdMS_TO_TICKS(1000));
}
if (ret != ESP_OK) {
CONTINUE_LATER();
}
}
ESP_LOGI(TAG, "Manual hang-up before reconnecting");
ret = esp_modem_at(dce, "ATH", NULL, 2000);
if (ret != ESP_OK) {
CONTINUE_LATER();
}
ret = esp_modem_get_signal_quality(dce, &rssi, &ber);
if (ret != ESP_OK) {
CONTINUE_LATER();
}
ESP_LOGI(TAG, "Signal quality: rssi=%d, ber=%d", rssi, ber);
ret = esp_modem_set_mode(dce, ESP_MODEM_MODE_DATA);
if (ret != ESP_OK) {
CONTINUE_LATER();
}
}

bits = xEventGroupWaitBits(event_group, (DISCONNECT_BIT | CONNECT_BIT), pdTRUE, pdFALSE, pdMS_TO_TICKS(30000));
if (bits & DISCONNECT_BIT) {
ESP_LOGE(TAG, "Modem got disconnected ...retrying");
modem_stop_network();
}


In your case, however, it would be useful to check for the reason of the disconnection (I think BG96 provides some netwrok act command to check the reason), as it makes no sense to retry the connection every 5 seconds if the reason is an unpaid cellular bill.

@marchingband
Copy link
Author

Thank you @david-cermak
I had seen those examples, and created a task that combines ap_to_pppos and pppos_client, I'll paste the code below

#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h"
#include "esp_netif.h"
#include "esp_netif_ppp.h"
#include "esp_modem_api.h"
#include "esp_log.h"
#include "sdkconfig.h"
#include "mqtt_client.h"
#include "driver/gpio.h"
#include "esp_mac.h"

#include "modem_config.h"

static const char* TAG = "modem";

static EventGroupHandle_t event_group = NULL;
static const int CONNECT_BIT = BIT0;
static const int DISCONNECT_BIT = BIT2;

static esp_modem_dce_t *dce;
static esp_netif_t *esp_netif;

static void pwk_gpio_init(void){
    gpio_config_t io_conf = {};
    io_conf.intr_type = GPIO_INTR_DISABLE;
    io_conf.mode = GPIO_MODE_OUTPUT;
    io_conf.pin_bit_mask = ( 1ULL << BG96_PWR_PIN );
    io_conf.pull_down_en = 0;
    io_conf.pull_up_en = 0;
    gpio_config(&io_conf);
    gpio_set_level(BG96_PWR_PIN, 0);
}

static void bg96_set_pwr(bool on){
    gpio_set_level(BG96_PWR_PIN, on);
}

static bool modem_start_network()
{
    return esp_modem_set_mode(dce, ESP_MODEM_MODE_DATA) == ESP_OK;
}

static bool modem_stop_network()
{
    return esp_modem_set_mode(dce, ESP_MODEM_MODE_COMMAND);
}

static bool modem_check_sync()
{
    return esp_modem_sync(dce) == ESP_OK;
}

static void modem_reset()
{
    esp_modem_reset(dce);
}

static bool modem_check_signal()
{
    int rssi, ber;
    if (esp_modem_get_signal_quality(dce, &rssi, &ber) == ESP_OK) {
        return rssi != 99 && rssi > 5;
    }
    return false;
}

static void on_ppp_changed(void *arg, esp_event_base_t event_base, int32_t event_id, void *event_data)
{
    ESP_LOGI(TAG, "PPP state changed event %" PRIu32, event_id);
    if (event_id == NETIF_PPP_ERRORUSER) {
        /* User interrupted event from esp-netif */
        esp_netif_t *netif = event_data;
        ESP_LOGI(TAG, "User interrupted event from netif:%p", netif);
    }
}

static void on_ip_event(void *arg, esp_event_base_t event_base, int32_t event_id, void *event_data)
{
    ESP_LOGD(TAG, "IP event! %" PRIu32, event_id);
    if (event_id == IP_EVENT_PPP_GOT_IP) {
        esp_netif_dns_info_t dns_info;

        ip_event_got_ip_t *event = (ip_event_got_ip_t *)event_data;
        esp_netif_t *netif = event->esp_netif;

        ESP_LOGI(TAG, "Modem Connect to PPP Server");
        ESP_LOGI(TAG, "~~~~~~~~~~~~~~");
        ESP_LOGI(TAG, "IP          : " IPSTR, IP2STR(&event->ip_info.ip));
        ESP_LOGI(TAG, "Netmask     : " IPSTR, IP2STR(&event->ip_info.netmask));
        ESP_LOGI(TAG, "Gateway     : " IPSTR, IP2STR(&event->ip_info.gw));
        esp_netif_get_dns_info(netif, 0, &dns_info);
        ESP_LOGI(TAG, "Name Server1: " IPSTR, IP2STR(&dns_info.ip.u_addr.ip4));
        esp_netif_get_dns_info(netif, 1, &dns_info);
        ESP_LOGI(TAG, "Name Server2: " IPSTR, IP2STR(&dns_info.ip.u_addr.ip4));
        ESP_LOGI(TAG, "~~~~~~~~~~~~~~");
        xEventGroupSetBits(event_group, CONNECT_BIT);

        ESP_LOGI(TAG, "GOT ip event!!!");
    } else if (event_id == IP_EVENT_PPP_LOST_IP) {
        ESP_LOGI(TAG, "Modem Disconnect from PPP Server");
        xEventGroupSetBits(event_group, DISCONNECT_BIT);
    } else if (event_id == IP_EVENT_GOT_IP6) {
        ESP_LOGI(TAG, "GOT IPv6 event!");

        ip_event_got_ip6_t *event = (ip_event_got_ip6_t *)event_data;
        ESP_LOGI(TAG, "Got IPv6 address " IPV6STR, IPV62STR(event->ip6_info.ip));
    }
}

static void start_network(void)
{
    EventBits_t bits = 0;
    while ((bits & CONNECT_BIT) == 0) {
        if (!modem_check_sync()) {
            ESP_LOGE(TAG, "Modem does not respond, maybe in DATA mode? ...exiting network mode");
            modem_stop_network();
            if (!modem_check_sync()) {
                ESP_LOGE(TAG, "Modem does not respond to AT ...restarting");
                modem_reset();
                ESP_LOGI(TAG, "Restarted");
            }
            continue;
        }
        if (!modem_check_signal()) {
            ESP_LOGI(TAG, "Poor signal ...will check after 5s");
            vTaskDelay(pdMS_TO_TICKS(5000));
            continue;
        }
        if (!modem_start_network()) {
            ESP_LOGE(TAG, "Modem could not enter network mode ...will retry after 10s");
            vTaskDelay(pdMS_TO_TICKS(10000));
            continue;
        }
        bits = xEventGroupWaitBits(event_group, (DISCONNECT_BIT | CONNECT_BIT), pdTRUE, pdFALSE, pdMS_TO_TICKS(30000));
        if (bits & DISCONNECT_BIT) {
            ESP_LOGE(TAG, "Modem got disconnected ...retrying");
            modem_stop_network();
        }
    }
}

static void modem_task( void *args ){
    pwk_gpio_init();

    // cycle pwk pin
    bg96_set_pwr(true);
    vTaskDelay(pdMS_TO_TICKS(1000));
    bg96_set_pwr(false);
    vTaskDelay(pdMS_TO_TICKS(1000));
    bg96_set_pwr(true);
    vTaskDelay(pdMS_TO_TICKS(10000)); // wait for boot

    /* Init and register system/core components */
    ESP_ERROR_CHECK(esp_netif_init());
    // ESP_ERROR_CHECK(esp_event_loop_create_default());
    ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, ESP_EVENT_ANY_ID, &on_ip_event, NULL));
    ESP_ERROR_CHECK(esp_event_handler_register(NETIF_PPP_STATUS, ESP_EVENT_ANY_ID, &on_ppp_changed, NULL));

    /* Configure the PPP netif */
    esp_modem_dce_config_t dce_config = ESP_MODEM_DCE_DEFAULT_CONFIG(CONFIG_EXAMPLE_MODEM_PPP_APN);
    esp_netif_config_t netif_ppp_config = ESP_NETIF_DEFAULT_PPP();
    esp_netif = esp_netif_new(&netif_ppp_config);
    assert(esp_netif);

    event_group = xEventGroupCreate();

    /* setup UART specific configuration based on kconfig options */
    esp_modem_dte_config_t dte_config = ESP_MODEM_DTE_DEFAULT_CONFIG();
    dte_config.uart_config.tx_io_num = CONFIG_EXAMPLE_MODEM_UART_TX_PIN;
    dte_config.uart_config.rx_io_num = CONFIG_EXAMPLE_MODEM_UART_RX_PIN;
    dte_config.uart_config.rts_io_num = CONFIG_EXAMPLE_MODEM_UART_RTS_PIN;
    dte_config.uart_config.cts_io_num = CONFIG_EXAMPLE_MODEM_UART_CTS_PIN;
    dte_config.uart_config.flow_control = CONFIG_EXAMPLE_FLOW_CONTROL;
    dte_config.uart_config.rx_buffer_size = CONFIG_EXAMPLE_MODEM_UART_RX_BUFFER_SIZE;
    dte_config.uart_config.tx_buffer_size = CONFIG_EXAMPLE_MODEM_UART_TX_BUFFER_SIZE;
    dte_config.uart_config.event_queue_size = CONFIG_EXAMPLE_MODEM_UART_EVENT_QUEUE_SIZE;
    dte_config.task_stack_size = CONFIG_EXAMPLE_MODEM_UART_EVENT_TASK_STACK_SIZE;
    dte_config.task_priority = CONFIG_EXAMPLE_MODEM_UART_EVENT_TASK_PRIORITY;
    dte_config.dte_buffer_size = CONFIG_EXAMPLE_MODEM_UART_RX_BUFFER_SIZE / 2;

    ESP_LOGI(TAG, "Initializing esp_modem for the BG96 module...");
    dce = esp_modem_new_dev(ESP_MODEM_DCE_BG96, &dte_config, &dce_config, esp_netif);
    assert(dce);

    xEventGroupClearBits(event_group, CONNECT_BIT | DISCONNECT_BIT );

    // Start the PPP network and wait for connection
    start_network();

    while(1){
        EventBits_t bits = xEventGroupWaitBits(event_group, DISCONNECT_BIT, pdTRUE, pdFALSE, portMAX_DELAY);
        if (bits & DISCONNECT_BIT) {
            modem_stop_network();
            start_network();
        }
    }
    ESP_LOGE(TAG, "modem task exited!");
    vTaskDelete(NULL);
}

void modem_deinit(void){
    esp_modem_destroy(dce);
    esp_netif_destroy(esp_netif);
}

void modem_init( void ){
    xTaskCreate(modem_task, "modem_task", 4096, NULL, 1, NULL);
}

The initial connection stage works well.
I use my SIM CARD provider dashboard to deactivate the SIM.
The ESP sees the disconnect and loops through toggling between DATA and COMMAND modes.
I then reactivate the SIM and wait for it to reconnect, but it never does, logging in a loop:

modem: Modem does not respond, maybe in DATA mode? ...exiting network mode
esp-netif_lwip-ppp: esp_netif_start_ppp: PPP connection cannot be started
modem: PPP state changed event 512
esp-netif_lwip-ppp: User interrupt
modem: PPP state changed event 5
modem: User interrupted event from netif:0x3fcc82a8
esp_modem_netif: PPP state changed event 5

If after 30 minutes, I reset the ESP32, then the reconnection works. My tests indicate that it takes about 10 minutes for the SIM to turn back on.

My guess was that there is more work to be done, to ask the modem to refresh its connection and get an IP.
Is there something I am missing?

@david-cermak
Copy link
Collaborator

I think that you're missing the hangup command:

ESP_LOGI(TAG, "Manual hang-up before reconnecting");
ret = esp_modem_at(dce, "ATH", NULL, 2000);

@marchingband
Copy link
Author

@david-cermak thank you
I added the hangup to the loop, but unfortunately no change in the behaviour, it does not get an IP address, until I give up and reset the MCU. Here is where I placed the hangup:

static void start_network(void)
{
    // EventBits_t bits = 0;
    while ((xEventGroupGetBits(event_group) & CONNECT_BIT) == 0) {
        if (!modem_check_sync()) {
            ESP_LOGE(TAG, "Modem does not respond, maybe in DATA mode? ...exiting network mode");
            modem_stop_network();
            if (!modem_check_sync()) {
                ESP_LOGE(TAG, "Modem does not respond to AT ...restarting");
                modem_reset();
                ESP_LOGI(TAG, "Restarted");
            }
            int ret = esp_modem_at(dce, "ATH", NULL, 2000);
            ESP_LOGI(TAG, "hangup %s", ret == ESP_OK ? "Success" : "Failure");
            continue;
        }
        if (!modem_check_signal()) {
            ESP_LOGI(TAG, "Poor signal ...will check after 5s");
            vTaskDelay(pdMS_TO_TICKS(5000));
            continue;
        }
        if (!modem_start_network()) {
            ESP_LOGE(TAG, "Modem could not enter network mode ...will retry after 10s");
            vTaskDelay(pdMS_TO_TICKS(10000));
            continue;
        }
        EventBits_t bits = xEventGroupWaitBits(event_group, (DISCONNECT_BIT | CONNECT_BIT), pdTRUE, pdFALSE, pdMS_TO_TICKS(30000));
        if (bits & DISCONNECT_BIT) {
            ESP_LOGE(TAG, "Modem got disconnected ...retrying");
            modem_stop_network();
        } else if(bits & CONNECT_BIT){
            ESP_LOGE(TAG, "Modem got connected");
            break;
        }
    }
}

Could there be anything else I am missing?

@david-cermak
Copy link
Collaborator

This is weird, could you please share the full log?

Does this command succeed?

esp_modem_set_mode(dce, ESP_MODEM_MODE_DATA) == ESP_OK

@marchingband
Copy link
Author

@david-cermak yes that does succeed.
The reconnection has always worked perfectly for "normal" network disconnect events, the issue only appears with disconnection due to the SIM becoming disabled, and then re-enabled, which simulates the client running out of money on their cellular account, and then paying it.
I am able to ex. remove the antenna, and then replace it, and everything disconnects/reconnects elegantly.

Here are the full logs. It is running the full esp-aws-iot suite, so there are a lot of logs, sorry.

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3818,len:0x1fcc
load:0x403c9700,len:0x4
load:0x403c9704,len:0xda0
load:0x403cc700,len:0x31c4
entry 0x403c9950
␛[0;32mI (27) boot: ESP-IDF 5.1.1 2nd stage bootloader␛[0m
␛[0;32mI (27) boot: compile time Dec  5 2023 08:58:16␛[0m
␛[0;32mI (27) boot: Multicore bootloader␛[0m
D (30) bootloader_flash: XMC chip detected by RDID (00204017), skip.␛[0m
D (36) bootloader_flash: mmu set block paddr=0x00000000 (was 0xffffffff)␛[0m
␛[0;32mI (43) boot: chip revision: v0.1␛[0m
D (47) boot.esp32s3: magic e9␛[0m
D (50) boot.esp32s3: segments 04␛[0m
D (53) boot.esp32s3: spi_mode 02␛[0m
D (56) boot.esp32s3: spi_speed 0f␛[0m
D (60) boot.esp32s3: spi_size 03␛[0m
␛[0;32mI (63) boot.esp32s3: Boot SPI Speed : 80MHz␛[0m
␛[0;32mI (68) boot.esp32s3: SPI Mode       : DIO␛[0m
␛[0;32mI (73) boot.esp32s3: SPI Flash Size : 8MB␛[0m
D (77) boot: Enabling RTCWDT(9000 ms)␛[0m
␛[0;32mI (81) boot: Enabling RNG early entropy source...␛[0m
D (87) bootloader_flash: rodata starts from paddr=0x00008000, size=0xc00, will be mapped to vaddr=0x3c000000␛[0m
D (96) boot: mapped partition table 0x8000 at 0x3c008000␛[0m
D (102) flash_parts: partition table verified, 7 entries␛[0m
␛[0;32mI (107) boot: Partition Table:␛[0m
␛[0;32mI (111) boot: ## Label            Usage          Type ST Offset   Length␛[0m
D (118) boot: load partition table entry 0x3c008000␛[0m
D (123) boot: type=1 subtype=2␛[0m
␛[0;32mI (126) boot:  0 nvs              WiFi data        01 02 00009000 00002000␛[0m
D (134) boot: load partition table entry 0x3c008020␛[0m
D (139) boot: type=1 subtype=82␛[0m
␛[0;32mI (142) boot:  1 storage          Unknown data     01 82 0000b000 00004000␛[0m
D (150) boot: load partition table entry 0x3c008040␛[0m
D (155) boot: type=1 subtype=0␛[0m
␛[0;32mI (158) boot:  2 otadata          OTA data         01 00 0000f000 00002000␛[0m
D (165) boot: load partition table entry 0x3c008060␛[0m
D (170) boot: type=1 subtype=1␛[0m
␛[0;32mI (173) boot:  3 phy_init         RF data          01 01 00011000 00001000␛[0m
D (181) boot: load partition table entry 0x3c008080␛[0m
D (186) boot: type=0 subtype=10␛[0m
␛[0;32mI (189) boot:  4 ota_0            OTA app          00 10 00020000 001a0000␛[0m
D (197) boot: load partition table entry 0x3c0080a0␛[0m
D (202) boot: type=0 subtype=11␛[0m
␛[0;32mI (205) boot:  5 ota_1            OTA app          00 11 001c0000 001a0000␛[0m
␛[0;32mI (212) boot: End of partition table␛[0m
D (217) boot: OTA data offset 0xf000␛[0m
D (220) bootloader_flash: rodata starts from paddr=0x0000f000, size=0x2000, will be mapped to vaddr=0x3c000000␛[0m
D (230) boot: otadata[0]: sequence values 0x00000001␛[0m
D (235) boot: otadata[1]: sequence values 0xffffffff␛[0m
D (240) boot_comm: Only otadata[0] is valid␛[0m
D (245) boot: Active otadata[0]␛[0m
D (248) boot: Mapping seq 0 -> OTA slot 0␛[0m
D (252) boot: Trying partition index 0 offs 0x20000 size 0x1a0000␛[0m
D (258) esp_image: reading image header @ 0x20000␛[0m
D (263) bootloader_flash: mmu set block paddr=0x00020000 (was 0xffffffff)␛[0m
D (270) esp_image: image header: 0xe9 0x05 0x02 0x03 40375fc8␛[0m
␛[0;32mI (275) esp_image: segment 0: paddr=00020020 vaddr=3c090020 size=33adch (211676) map␛[0m
D (284) esp_image: free data page_count 0x00000200␛[0m
D (289) bootloader_flash: rodata starts from paddr=0x00020020, size=0x33adc, will be mapped to vaddr=0x3c000000␛[0m
D (338) bootloader_flash: mmu set block paddr=0x00050000 (was 0xffffffff)␛[0m
␛[0;32mI (338) esp_image: segment 1: paddr=00053b04 vaddr=3fc93f00 size=03634h ( 13876) load␛[0m
D (342) esp_image: free data page_count 0x00000200␛[0m
D (347) bootloader_flash: rodata starts from paddr=0x00053b04, size=0x3634, will be mapped to vaddr=0x3c000000␛[0m
D (360) bootloader_flash: mmu set block paddr=0x00050000 (was 0xffffffff)␛[0m
␛[0;32mI (364) esp_image: segment 2: paddr=00057140 vaddr=40374000 size=08ed8h ( 36568) load␛[0m
D (372) esp_image: free data page_count 0x00000200␛[0m
D (377) bootloader_flash: rodata starts from paddr=0x00057140, size=0x8ed8, will be mapped to vaddr=0x3c000000␛[0m
D (395) bootloader_flash: mmu set block paddr=0x00060000 (was 0xffffffff)␛[0m
␛[0;32mI (395) esp_image: segment 3: paddr=00060020 vaddr=42000020 size=804e4h (525540) map␛[0m
D (402) esp_image: free data page_count 0x00000200␛[0m
D (407) bootloader_flash: rodata starts from paddr=0x00060020, size=0x804e4, will be mapped to vaddr=0x3c000000␛[0m
D (513) bootloader_flash: mmu set block paddr=0x000e0000 (was 0xffffffff)␛[0m
␛[0;32mI (513) esp_image: segment 4: paddr=000e050c vaddr=4037ced8 size=06fbch ( 28604) load␛[0m
D (517) esp_image: free data page_count 0x00000200␛[0m
D (522) bootloader_flash: rodata starts from paddr=0x000e050c, size=0x6fbc, will be mapped to vaddr=0x3c000000␛[0m
D (539) bootloader_flash: mmu set block paddr=0x000e0000 (was 0xffffffff)␛[0m
␛[0;32mI (546) boot: Loaded app from partition at offset 0x20000␛[0m
␛[0;32mI (546) boot: Disabling RNG early entropy source...␛[0m
D (551) boot: Mapping segment 0 as DROM␛[0m
D (555) boot: Mapping segment 3 as IROM␛[0m
D (559) boot: calling set_cache_and_start_app␛[0m
D (563) boot: configure drom and irom and start␛[0m
D (568) boot: start: 0x40375fc8␛[0m
␛[0;32mI (582) cpu_start: Multicore app␛[0m
␛[0;32mI (583) cpu_start: Pro cpu up.␛[0m
␛[0;32mI (583) cpu_start: Starting app cpu, entry point is 0x40375ea0␛[0m
␛[0;32mI (0) cpu_start: App cpu up.␛[0m
␛[0;32mI (601) cpu_start: Pro cpu start user code␛[0m
␛[0;32mI (601) cpu_start: cpu freq: 160000000 Hz␛[0m
␛[0;32mI (601) cpu_start: Application information:␛[0m
␛[0;32mI (604) cpu_start: Project name:     ocular␛[0m
␛[0;32mI (609) cpu_start: App version:      v0.1-4-g9509c3f-dirty␛[0m
␛[0;32mI (615) cpu_start: Compile time:     Dec  5 2023 08:57:58␛[0m
␛[0;32mI (621) cpu_start: ELF file SHA256:  5531c35dd6c6babb...␛[0m
␛[0;32mI (627) cpu_start: ESP-IDF:          5.1.1␛[0m
␛[0;32mI (632) cpu_start: Min chip rev:     v0.0␛[0m
␛[0;32mI (636) cpu_start: Max chip rev:     v0.99 ␛[0m
␛[0;32mI (641) cpu_start: Chip rev:         v0.1␛[0m
␛[0;32mI (646) heap_init: Initializing. RAM available for dynamic allocation:␛[0m
␛[0;32mI (653) heap_init: At 3FCAB880 len 0003DE90 (247 KiB): DRAM␛[0m
␛[0;32mI (659) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM␛[0m
␛[0;32mI (666) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM␛[0m
␛[0;32mI (672) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM␛[0m
␛[0;32mI (680) spi_flash: detected chip: generic␛[0m
␛[0;32mI (683) spi_flash: flash io: dio␛[0m
␛[0;32mI (688) sleep: Configure to isolate all GPIO pins in sleep state␛[0m
␛[0;32mI (694) sleep: Enable automatic switching of GPIO sleep configuration␛[0m
␛[0;32mI (701) app_start: Starting scheduler on CPU0␛[0m
␛[0;32mI (706) app_start: Starting scheduler on CPU1␛[0m
␛[0;32mI (706) main_task: Started on CPU0␛[0m
␛[0;32mI (716) main_task: Calling app_main()␛[0m
␛[0;32mI (716) main: 
*************
new firmware v1.1.2!
*************

␛[0m
␛[0;32mI (726) main: [APP] Startup..␛[0m
␛[0;32mI (726) main: [APP] Free memory: 288420 bytes␛[0m
␛[0;32mI (736) main: [APP] IDF version: 5.1.1␛[0m
␛[0;32mI (756) main: Initializing SPIFFS␛[0m
␛[0;32mI (1206) ocular_ota: OTA over MQTT demo, Application version 1.1.2␛[0m
␛[0;32mI (1206) AWS_OTA: otaPal_GetPlatformImageState␛[0m
␛[0;32mI (1216) esp_ota_ops: aws_esp_ota_get_boot_flags: 1␛[0m
␛[0;32mI (1226) esp_ota_ops: [0] aflags/seq:0x2/0x1, pflags/seq:0xffffffff/0x0␛[0m
␛[0;32mI (1226) AWS_OTA: Current State=[RequestingJob], Event=[Start], New state=[RequestingJob]␛[0m
␛[0;31mE (1236) coreMQTT: pMqttAgentContext must have initialized its messaging interface.␛[0m
␛[0;31mE (1246) ocular_ota: Failed to SUBSCRIBE to topic with error = 1.␛[0m
␛[0;31mE (1256) AWS_OTA: Failed to subscribe to MQTT topic: subscribe returned error: OtaMqttStatus_t=OtaMqttSubscribeFailed, topic=$aws/things/7cdfa1e7c6cc/jobs/notify-next␛[0m
␛[0;32mI (1266) AWS_OTA: Current State=[RequestingJob], Event=[RequestJobDocument], New state=[WaitingForJob]␛[0m
␛[0;32mI (1276) shadow: shadow_base_str              ->           $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc␛[0m
␛[0;32mI (1286) shadow: shadow_get_topic             -> len 53 -> $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/get␛[0m
␛[0;32mI (1296) shadow: shadow_update_topic          -> len 56 -> $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update␛[0m
␛[0;32mI (1306) shadow: shadow_get_accepted_topic    -> len 62 -> $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/get/accepted␛[0m
␛[0;32mI (1326) shadow: shadow_get_rejected_topic    -> len 62 -> $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/get/rejected␛[0m
␛[0;32mI (1336) shadow: shadow_update_accepted_topic -> len 65 -> $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/accepted␛[0m
␛[0;32mI (1346) shadow: shadow_update_rejected_topic -> len 65 -> $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/rejected␛[0m
␛[0;32mI (1356) shadow: shadow_delta_topic    -> len 62 -> $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/delta␛[0m
␛[0;32mI (1366) shadow: Sending subscribe request to agent for topic filter: $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/accepted with id 1␛[0m
␛[0;32mI (1386) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (6396) main: main loop␛[0m
␛[0;32mI (13396) modem: Initializing esp_modem for the BG96 module...␛[0m
␛[0;32mI (13396) uart: queue free spaces: 30␛[0m
␛[0;32mI (13446) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (16396) main: main loop␛[0m
␛[0;32mI (26396) main: main loop␛[0m
␛[0;32mI (36396) main: main loop␛[0m
␛[0;32mI (43446) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (43946) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (46396) main: main loop␛[0m
␛[0;32mI (55946) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (55946) modem: PPP state changed event 5␛[0m
␛[0;32mI (55946) modem: User interrupted event from netif:0x3fcc0c6c␛[0m
␛[0;32mI (55946) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (56396) main: main loop␛[0m
␛[0;32mI (64956) modem: hangup Success␛[0m
␛[0;32mI (64996) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (66396) main: main loop␛[0m
␛[0;32mI (76396) main: main loop␛[0m
␛[0;32mI (86396) main: main loop␛[0m
␛[0;32mI (94996) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (95496) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (96396) main: main loop␛[0m
␛[0;32mI (106396) main: main loop␛[0m
␛[0;32mI (107496) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (107496) modem: PPP state changed event 5␛[0m
␛[0;32mI (107496) modem: User interrupted event from netif:0x3fcc0c6c␛[0m
␛[0;32mI (107496) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (116396) main: main loop␛[0m
␛[0;32mI (116506) modem: hangup Success␛[0m
␛[0;32mI (116546) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (118756) core_mqtt_agent_manager: WiFi connected.␛[0m
␛[0;32mI (118756) modem: Modem Connect to PPP Server␛[0m
␛[0;32mI (118756) esp-netif_lwip-ppp: Connected␛[0m
␛[0;32mI (118756) modem: ~~~~~~~~~~~~~~␛[0m
␛[0;32mI (118766) modem: IP          : 100.80.27.123␛[0m
␛[0;32mI (118766) modem: Netmask     : 255.255.255.255␛[0m
␛[0;32mI (118776) modem: Gateway     : 10.64.64.64␛[0m
␛[0;32mI (118776) modem: Name Server1: 8.8.8.8␛[0m
␛[0;32mI (118786) modem: Name Server2: 8.8.4.4␛[0m
␛[0;32mI (118786) modem: ~~~~~~~~~~~~~~␛[0m
␛[0;32mI (118786) modem: GOT ip event!!!␛[0m
␛[0;31mE (118786) modem: Modem got connected␛[0m
␛[0;32mI (118796) modem: PPP state changed event 0␛[0m
␛[0;32mI (124636) coreMQTT: MQTT connection established with the broker.␛[0m
␛[0;32mI (124636) core_mqtt_agent_manager: Session present: 0
␛[0m
␛[0;32mI (124646) ocular_ota: coreMQTT-Agent connected. Resuming OTA agent.␛[0m
␛[0;32mI (124646) device_topic: coreMQTT-Agent connected.␛[0m
␛[0;32mI (124656) device_topic: Sending publish request to agent with message "{"temperatureSensor":{ "taskName": "device_top_task", "temperatureValue": 1.230000, "iteration": 0}" on topic "7cdfa1e7c6cc"␛[0m
␛[0;32mI (124656) shadow: coreMQTT-Agent connected.␛[0m
␛[0;32mI (124676) device_topic: Task device_top_task waiting for publish 0 to complete.␛[0m
␛[0;32mI (124676) core_mqtt_agent_manager: coreMQTT-Agent connected.␛[0m
␛[0;32mI (125616) shadow: Received subscribe ack for topic $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/accepted containing ID 1␛[0m
␛[0;32mI (125626) shadow: Sending subscribe request to agent for topic filter: $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/rejected with id 2␛[0m
␛[0;32mI (126396) main: main loop␛[0m
␛[0;32mI (136396) main: main loop␛[0m
␛[0;32mI (145616) coreMQTT: Publishing message to 7cdfa1e7c6cc.

here are a successful reconnection, due to normal network connectivity issues

␛[0m
␛[0;32mI (146396) main: main loop␛[0m
␛[0;31mE (155616) coreMQTT: Handling of keep alive failed. Status=MQTTKeepAliveTimeout␛[0m
␛[0;31mE (155616) coreMQTT: Call to receiveSingleIteration failed. Status=MQTTKeepAliveTimeout␛[0m
␛[0;31mE (155616) coreMQTT: MQTT operation failed with status MQTTKeepAliveTimeout
␛[0m
␛[0;32mI (155626) ocular_ota: coreMQTT-Agent disconnected. Suspending OTA agent.␛[0m
␛[0;32mI (155626) core_mqtt_agent_manager: TLS connection was disconnected.␛[0m
␛[0;32mI (155636) device_topic: coreMQTT-Agent disconnected. Preventing coreMQTT-Agent commands from being enqueued.␛[0m
␛[0;32mI (155646) shadow: coreMQTT-Agent disconnected. Preventing coreMQTT-Agent commands from being enqueued.␛[0m
␛[0;32mI (155656) core_mqtt_agent_manager: coreMQTT-Agent disconnected.␛[0m
␛[0;33mW (156216) AWS_OTA: OTA Timer handle NULL for Timerid=1, can't stop.␛[0m
␛[0;32mI (156396) main: main loop␛[0m
␛[0;31mE (165656) esp-tls: [sock=54] select() timeout␛[0m
␛[0;31mE (165656) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (165966) core_mqtt_agent_manager: Retry attempt 1.␛[0m
␛[0;32mI (166396) main: main loop␛[0m
␛[0;31mE (175976) esp-tls: [sock=54] select() timeout␛[0m
␛[0;31mE (175976) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (176396) main: main loop␛[0m
␛[0;32mI (176426) core_mqtt_agent_manager: Retry attempt 2.␛[0m
␛[0;31mE (178086) esp-tls: [sock=54] delayed connect error: Software caused connection abort␛[0m
␛[0;31mE (178086) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (179556) core_mqtt_agent_manager: Retry attempt 3.␛[0m
␛[0;31mE (179556) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (179556) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (181306) core_mqtt_agent_manager: Retry attempt 4.␛[0m
␛[0;31mE (181306) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (181306) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (183506) core_mqtt_agent_manager: Retry attempt 5.␛[0m
␛[0;31mE (183506) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (183506) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (184086) esp-netif_lwip-ppp: Connection lost␛[0m
␛[0;32mI (184086) core_mqtt_agent_manager: WiFi disconnected.␛[0m
␛[0;32mI (184086) modem: Modem Disconnect from PPP Server␛[0m
␛[0;32mI (184086) modem: 
Daemon received DISCONNECT_BIT, cycling modem
␛[0m
␛[0;32mI (184096) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (184096) modem: PPP state changed event 5␛[0m
␛[0;32mI (184106) modem: User interrupted event from netif:0x3fcc0c6c␛[0m
␛[0;32mI (184106) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (186396) main: main loop␛[0m
␛[0;32mI (188346) core_mqtt_agent_manager: Retry attempt 6.␛[0m
␛[0;31mE (188346) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (188346) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (189056) core_mqtt_agent_manager: Retry attempt 7.␛[0m
␛[0;31mE (189056) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (189056) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (192396) core_mqtt_agent_manager: Retry attempt 8.␛[0m
␛[0;31mE (192396) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (192396) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (193156) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (193606) core_mqtt_agent_manager: Retry attempt 9.␛[0m
␛[0;31mE (193606) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (193606) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (194376) core_mqtt_agent_manager: Retry attempt 10.␛[0m
␛[0;31mE (194376) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (194376) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (194556) core_mqtt_agent_manager: Retry attempt 11.␛[0m
␛[0;31mE (194556) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (194556) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (196396) main: main loop␛[0m
␛[0;32mI (196896) core_mqtt_agent_manager: Retry attempt 12.␛[0m
␛[0;31mE (196896) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (196896) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (201006) core_mqtt_agent_manager: WiFi connected.␛[0m
␛[0;32mI (201006) modem: Modem Connect to PPP Server␛[0m
␛[0;32mI (201006) modem: ~~~~~~~~~~~~~~␛[0m
␛[0;32mI (201016) modem: IP          : 100.80.167.131␛[0m
␛[0;32mI (201016) esp-netif_lwip-ppp: Connected␛[0m
␛[0;32mI (201016) modem: Netmask     : 255.255.255.255␛[0m
␛[0;32mI (201026) modem: Gateway     : 10.64.64.64␛[0m
␛[0;32mI (201036) modem: Name Server1: 8.8.8.8␛[0m
␛[0;32mI (201036) modem: Name Server2: 8.8.4.4␛[0m
␛[0;32mI (201046) modem: ~~~~~~~~~~~~~~␛[0m
␛[0;32mI (201046) modem: GOT ip event!!!␛[0m
␛[0;31mE (201046) modem: Modem got connected␛[0m
␛[0;32mI (201046) modem: PPP state changed event 0␛[0m
␛[0;32mI (201866) core_mqtt_agent_manager: Retry attempt 13.␛[0m
␛[0;32mI (206396) main: main loop␛[0m
␛[0;32mI (216396) main: main loop␛[0m
␛[0;32mI (219256) coreMQTT: MQTT connection established with the broker.␛[0m
␛[0;32mI (219266) core_mqtt_agent_manager: Session present: 0
␛[0m

here is where I disable the SIM in the dashboard for the SIM card

␛[0;31mE (219266) ocular_ota: Failed to SUBSCRIBE to topic with error = 4.␛[0m
␛[0;32mI (219266) core_mqtt_agent_manager: Resubscribe to the topic $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/accepted will be attempted.␛[0m
␛[0;31mE (219266) AWS_OTA: Failed to subscribe to MQTT topic: subscribe returned error: OtaMqttStatus_t=OtaMqttSubscribeFailed, topic=$aws/things/7cdfa1e7c6cc/jobs/notify-next␛[0m
␛[0;32mI (219286) ocular_ota: coreMQTT-Agent connected. Resuming OTA agent.␛[0m
␛[0;32mI (219296) AWS_OTA: Current State=[RequestingJob], Event=[RequestTimer], New state=[WaitingForJob]␛[0m
␛[0;32mI (219306) device_topic: coreMQTT-Agent connected.␛[0m
␛[0;32mI (219316) AWS_OTA: OTA Agent is suspended.␛[0m
␛[0;32mI (219326) shadow: coreMQTT-Agent connected.␛[0m
␛[0;32mI (219326) AWS_OTA: Current State=[Suspended], Event=[Suspend], New state=[Suspended]␛[0m
␛[0;32mI (219336) core_mqtt_agent_manager: coreMQTT-Agent connected.␛[0m
␛[0;32mI (219266) device_topic: Rx'ed ack for QoS1 publish from Tx to 7cdfa1e7c6cc (P1:F0).␛[0m
␛[0;32mI (220356) shadow: Received subscribe ack for topic $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/rejected containing ID 2␛[0m
␛[0;32mI (220366) shadow: Sending subscribe request to agent for topic filter: $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/delta with id 3␛[0m
␛[0;32mI (221216) AWS_OTA: otaPal_GetPlatformImageState␛[0m
␛[0;32mI (221216) esp_ota_ops: aws_esp_ota_get_boot_flags: 1␛[0m
␛[0;32mI (221216) esp_ota_ops: [0] aflags/seq:0x2/0x1, pflags/seq:0xffffffff/0x0␛[0m
␛[0;32mI (221216) AWS_OTA: Current State=[RequestingJob], Event=[Resume], New state=[RequestingJob]␛[0m
␛[0;31mE (223606) esp-tls-mbedtls: read error :-0x004C:␛[0m
␛[0;31mE (223606) coreMQTT: Call to receiveSingleIteration failed. Status=MQTTRecvFailed␛[0m
␛[0;31mE (223606) coreMQTT: MQTT operation failed with status MQTTRecvFailed
␛[0m
␛[0;32mI (223616) ocular_ota: coreMQTT-Agent disconnected. Suspending OTA agent.␛[0m
␛[0;32mI (223616) core_mqtt_agent_manager: TLS connection was disconnected.␛[0m
␛[0;32mI (223616) device_topic: coreMQTT-Agent disconnected. Preventing coreMQTT-Agent commands from being enqueued.␛[0m
␛[0;31mE (223626) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;32mI (223636) shadow: coreMQTT-Agent disconnected. Preventing coreMQTT-Agent commands from being enqueued.␛[0m
␛[0;31mE (223646) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (223656) core_mqtt_agent_manager: coreMQTT-Agent disconnected.␛[0m
␛[0;32mI (223936) core_mqtt_agent_manager: Retry attempt 1.␛[0m
␛[0;31mE (223936) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (223936) esp-tls: Failed to open new connection␛[0m
␛[0;33mW (224226) AWS_OTA: OTA Timer handle NULL for Timerid=1, can't stop.␛[0m
␛[0;32mI (224386) core_mqtt_agent_manager: Retry attempt 2.␛[0m
␛[0;31mE (224386) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (224386) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (225546) core_mqtt_agent_manager: Retry attempt 3.␛[0m
␛[0;31mE (225546) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (225546) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (226396) main: main loop␛[0m
␛[0;32mI (228716) core_mqtt_agent_manager: Retry attempt 4.␛[0m
␛[0;31mE (228716) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (228716) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (229606) esp-netif_lwip-ppp: Connection lost␛[0m
␛[0;32mI (229606) core_mqtt_agent_manager: WiFi disconnected.␛[0m
␛[0;32mI (229606) modem: Modem Disconnect from PPP Server␛[0m
␛[0;32mI (229606) modem: 
Daemon received DISCONNECT_BIT, cycling modem
␛[0m
␛[0;32mI (229616) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (229616) modem: PPP state changed event 5␛[0m
␛[0;32mI (229626) modem: User interrupted event from netif:0x3fcc24d8␛[0m
␛[0;32mI (229626) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (232056) core_mqtt_agent_manager: Retry attempt 5.␛[0m
␛[0;31mE (232056) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (232056) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (233316) core_mqtt_agent_manager: Retry attempt 6.␛[0m
␛[0;31mE (233316) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (233316) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (236396) main: main loop␛[0m
␛[0;32mI (238296) core_mqtt_agent_manager: Retry attempt 7.␛[0m
␛[0;31mE (238296) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (238296) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (238676) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (240636) core_mqtt_agent_manager: Retry attempt 8.␛[0m
␛[0;31mE (240636) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (240636) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (242376) core_mqtt_agent_manager: Retry attempt 9.␛[0m
␛[0;31mE (242376) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (242376) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (243016) core_mqtt_agent_manager: Retry attempt 10.␛[0m
␛[0;31mE (243016) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (243016) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (246396) main: main loop␛[0m
␛[0;32mI (246726) core_mqtt_agent_manager: Retry attempt 11.␛[0m
␛[0;31mE (246726) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (246726) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (248296) core_mqtt_agent_manager: Retry attempt 12.␛[0m
␛[0;31mE (248296) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (248296) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (250776) core_mqtt_agent_manager: Retry attempt 13.␛[0m
␛[0;31mE (250776) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (250776) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (255666) core_mqtt_agent_manager: Retry attempt 14.␛[0m
␛[0;31mE (255666) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (255666) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (255746) core_mqtt_agent_manager: Retry attempt 15.␛[0m
␛[0;31mE (255746) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (255746) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (256396) main: main loop␛[0m
␛[0;32mI (257286) core_mqtt_agent_manager: Retry attempt 16.␛[0m
␛[0;31mE (257286) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (257286) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (260536) core_mqtt_agent_manager: Retry attempt 17.␛[0m
␛[0;31mE (260536) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (260536) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (261496) core_mqtt_agent_manager: Retry attempt 18.␛[0m
␛[0;31mE (261496) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (261496) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (261576) core_mqtt_agent_manager: Retry attempt 19.␛[0m
␛[0;31mE (261576) esp-tls: [sock=54] connect() error: Host is unreachable␛[0m
␛[0;31mE (261576) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (264336) core_mqtt_agent_manager: Retry attempt 20.␛[0m
␛[0;31mE (264336) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (264336) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (266396) main: main loop␛[0m
␛[0;32mI (266716) core_mqtt_agent_manager: Retry attempt 21.␛[0m
␛[0;31mE (266716) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (266716) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (267586) core_mqtt_agent_manager: Retry attempt 22.␛[0m
␛[0;31mE (267586) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (267586) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (268676) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (269176) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (269226) core_mqtt_agent_manager: Retry attempt 23.␛[0m
␛[0;31mE (269226) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (269226) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (272146) core_mqtt_agent_manager: Retry attempt 24.␛[0m
␛[0;31mE (272146) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (272146) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (272596) core_mqtt_agent_manager: Retry attempt 25.␛[0m
␛[0;31mE (272596) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (272596) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (274896) core_mqtt_agent_manager: Retry attempt 26.␛[0m
␛[0;31mE (274896) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (274896) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (276396) main: main loop␛[0m
␛[0;32mI (276416) core_mqtt_agent_manager: Retry attempt 27.␛[0m
␛[0;31mE (276416) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (276416) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (277646) core_mqtt_agent_manager: Retry attempt 28.␛[0m
␛[0;31mE (277646) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (277646) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (279696) core_mqtt_agent_manager: Retry attempt 29.␛[0m
␛[0;31mE (279696) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (279696) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (281176) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (281176) modem: PPP state changed event 5␛[0m
␛[0;32mI (281176) modem: User interrupted event from netif:0x3fcc24d8␛[0m
␛[0;32mI (281176) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (284256) core_mqtt_agent_manager: Retry attempt 30.␛[0m
␛[0;31mE (284256) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (284256) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (285716) core_mqtt_agent_manager: Retry attempt 31.␛[0m
␛[0;31mE (285716) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (285716) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (286396) main: main loop␛[0m
␛[0;32mI (288006) core_mqtt_agent_manager: Retry attempt 32.␛[0m
␛[0;31mE (288006) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (288006) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (289896) core_mqtt_agent_manager: Retry attempt 33.␛[0m
␛[0;31mE (289896) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (289896) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (290186) modem: hangup Success␛[0m
␛[0;32mI (290226) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (291786) core_mqtt_agent_manager: Retry attempt 34.␛[0m
␛[0;31mE (291786) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (291786) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (292556) core_mqtt_agent_manager: Retry attempt 35.␛[0m
␛[0;31mE (292556) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (292556) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (296216) core_mqtt_agent_manager: Retry attempt 36.␛[0m
␛[0;31mE (296216) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (296216) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (296396) main: main loop␛[0m
␛[0;32mI (297566) core_mqtt_agent_manager: Retry attempt 37.␛[0m
␛[0;31mE (297566) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (297566) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (298086) core_mqtt_agent_manager: WiFi disconnected.␛[0m
␛[0;32mI (298086) modem: Modem Disconnect from PPP Server␛[0m
␛[0;31mE (298086) modem: Modem got disconnected ...retrying␛[0m
␛[0;32mI (300596) core_mqtt_agent_manager: Retry attempt 38.␛[0m
␛[0;31mE (300596) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (300596) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (303376) core_mqtt_agent_manager: Retry attempt 39.␛[0m
␛[0;31mE (303376) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (303376) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (306396) main: main loop␛[0m
␛[0;32mI (307896) core_mqtt_agent_manager: Retry attempt 40.␛[0m
␛[0;31mE (307896) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (307896) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (310086) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (310086) modem: PPP state changed event 5␛[0m
␛[0;32mI (310086) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (310086) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (311146) core_mqtt_agent_manager: Retry attempt 41.␛[0m
␛[0;31mE (311146) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (311146) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (314886) core_mqtt_agent_manager: Retry attempt 42.␛[0m
␛[0;31mE (314886) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (314886) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (316396) main: main loop␛[0m
␛[0;32mI (319136) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (319166) core_mqtt_agent_manager: Retry attempt 43.␛[0m
␛[0;31mE (319166) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (319166) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (319856) core_mqtt_agent_manager: Retry attempt 44.␛[0m
␛[0;31mE (319856) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (319856) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (319956) core_mqtt_agent_manager: Retry attempt 45.␛[0m
␛[0;31mE (319956) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (319956) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (321296) core_mqtt_agent_manager: Retry attempt 46.␛[0m
␛[0;31mE (321296) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (321296) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (324936) core_mqtt_agent_manager: Retry attempt 47.␛[0m
␛[0;31mE (324936) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (324936) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (325856) core_mqtt_agent_manager: Retry attempt 48.␛[0m
␛[0;31mE (325856) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (325856) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (326396) main: main loop␛[0m
␛[0;32mI (327946) core_mqtt_agent_manager: Retry attempt 49.␛[0m
␛[0;31mE (327946) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (327946) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (331816) core_mqtt_agent_manager: Retry attempt 50.␛[0m
␛[0;31mE (331816) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (331816) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (332926) core_mqtt_agent_manager: Retry attempt 51.␛[0m
␛[0;31mE (332926) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (332926) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (332956) core_mqtt_agent_manager: Retry attempt 52.␛[0m
␛[0;31mE (332956) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (332956) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (336396) main: main loop␛[0m
␛[0;32mI (337046) core_mqtt_agent_manager: Retry attempt 53.␛[0m
␛[0;31mE (337046) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (337046) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (340436) core_mqtt_agent_manager: Retry attempt 54.␛[0m
␛[0;31mE (340436) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (340436) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (344026) core_mqtt_agent_manager: Retry attempt 55.␛[0m
␛[0;31mE (344026) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (344026) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (346396) main: main loop␛[0m
␛[0;32mI (346896) core_mqtt_agent_manager: Retry attempt 56.␛[0m
␛[0;31mE (346896) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (346896) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (347676) core_mqtt_agent_manager: Retry attempt 57.␛[0m
␛[0;31mE (347676) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (347676) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (349136) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (349636) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (351996) core_mqtt_agent_manager: Retry attempt 58.␛[0m
␛[0;31mE (351996) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (351996) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (352766) core_mqtt_agent_manager: Retry attempt 59.␛[0m
␛[0;31mE (352766) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (352766) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (356396) main: main loop␛[0m
␛[0;32mI (356946) core_mqtt_agent_manager: Retry attempt 60.␛[0m
␛[0;31mE (356946) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (356946) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (357346) core_mqtt_agent_manager: Retry attempt 61.␛[0m
␛[0;31mE (357346) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (357346) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (360446) core_mqtt_agent_manager: Retry attempt 62.␛[0m
␛[0;31mE (360446) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (360446) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (361636) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (361636) modem: PPP state changed event 5␛[0m
␛[0;32mI (361636) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (361636) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (361876) core_mqtt_agent_manager: Retry attempt 63.␛[0m
␛[0;31mE (361876) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (361876) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (366376) core_mqtt_agent_manager: Retry attempt 64.␛[0m
␛[0;31mE (366376) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (366376) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (366396) main: main loop␛[0m
␛[0;32mI (369356) core_mqtt_agent_manager: Retry attempt 65.␛[0m
␛[0;31mE (369356) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (369356) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (370646) modem: hangup Success␛[0m
␛[0;32mI (370686) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (371586) core_mqtt_agent_manager: Retry attempt 66.␛[0m
␛[0;31mE (371586) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (371586) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (376396) main: main loop␛[0m
␛[0;32mI (376406) core_mqtt_agent_manager: Retry attempt 67.␛[0m
␛[0;31mE (376406) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (376406) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (380136) core_mqtt_agent_manager: Retry attempt 68.␛[0m
␛[0;31mE (380136) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (380136) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (381076) core_mqtt_agent_manager: Retry attempt 69.␛[0m
␛[0;31mE (381076) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (381076) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (383306) core_mqtt_agent_manager: Retry attempt 70.␛[0m
␛[0;31mE (383306) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (383306) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (383596) core_mqtt_agent_manager: Retry attempt 71.␛[0m
␛[0;31mE (383596) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (383596) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (386396) main: main loop␛[0m
␛[0;32mI (386966) core_mqtt_agent_manager: Retry attempt 72.␛[0m
␛[0;31mE (386966) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (386966) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (390316) core_mqtt_agent_manager: Retry attempt 73.␛[0m
␛[0;31mE (390316) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (390316) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (390376) core_mqtt_agent_manager: Retry attempt 74.␛[0m
␛[0;31mE (390376) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (390376) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (394696) core_mqtt_agent_manager: Retry attempt 75.␛[0m
␛[0;31mE (394696) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (394696) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (396396) main: main loop␛[0m
␛[0;32mI (399416) core_mqtt_agent_manager: Retry attempt 76.␛[0m
␛[0;31mE (399416) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (399416) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (400686) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (401186) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (401616) core_mqtt_agent_manager: Retry attempt 77.␛[0m
␛[0;31mE (401616) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (401616) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (404596) core_mqtt_agent_manager: Retry attempt 78.␛[0m
␛[0;31mE (404596) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (404596) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (405436) core_mqtt_agent_manager: Retry attempt 79.␛[0m
␛[0;31mE (405436) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (405436) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (406026) core_mqtt_agent_manager: Retry attempt 80.␛[0m
␛[0;31mE (406026) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (406026) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (406396) main: main loop␛[0m
␛[0;32mI (408366) core_mqtt_agent_manager: Retry attempt 81.␛[0m
␛[0;31mE (408366) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (408366) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (409716) core_mqtt_agent_manager: Retry attempt 82.␛[0m
␛[0;31mE (409716) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (409716) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (413136) core_mqtt_agent_manager: Retry attempt 83.␛[0m
␛[0;31mE (413136) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (413136) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (413186) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (413186) modem: PPP state changed event 5␛[0m
␛[0;32mI (413186) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (413186) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (413546) core_mqtt_agent_manager: Retry attempt 84.␛[0m
␛[0;31mE (413546) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (413546) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (413886) core_mqtt_agent_manager: Retry attempt 85.␛[0m
␛[0;31mE (413886) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (413886) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (416396) main: main loop␛[0m
␛[0;32mI (418486) core_mqtt_agent_manager: Retry attempt 86.␛[0m
␛[0;31mE (418486) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (418486) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (422196) modem: hangup Success␛[0m
␛[0;32mI (422236) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (423336) core_mqtt_agent_manager: Retry attempt 87.␛[0m
␛[0;31mE (423336) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (423336) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (426396) main: main loop␛[0m
␛[0;32mI (427356) core_mqtt_agent_manager: Retry attempt 88.␛[0m
␛[0;31mE (427356) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (427356) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (427646) core_mqtt_agent_manager: Retry attempt 89.␛[0m
␛[0;31mE (427646) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (427646) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (432316) core_mqtt_agent_manager: Retry attempt 90.␛[0m
␛[0;31mE (432316) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (432316) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (434636) core_mqtt_agent_manager: Retry attempt 91.␛[0m
␛[0;31mE (434636) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (434636) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (436396) main: main loop␛[0m
␛[0;32mI (438846) core_mqtt_agent_manager: Retry attempt 92.␛[0m
␛[0;31mE (438846) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (438846) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (439966) core_mqtt_agent_manager: Retry attempt 93.␛[0m
␛[0;31mE (439966) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (439966) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (440596) core_mqtt_agent_manager: Retry attempt 94.␛[0m
␛[0;31mE (440596) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (440596) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (444336) core_mqtt_agent_manager: Retry attempt 95.␛[0m
␛[0;31mE (444336) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (444336) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (446396) main: main loop␛[0m
␛[0;32mI (447376) core_mqtt_agent_manager: Retry attempt 96.␛[0m
␛[0;31mE (447376) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (447376) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (448626) core_mqtt_agent_manager: Retry attempt 97.␛[0m
␛[0;31mE (448626) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (448626) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (449006) core_mqtt_agent_manager: Retry attempt 98.␛[0m
␛[0;31mE (449006) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (449006) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (452236) modem: 
start_network() wait timed out
␛[0m
␛[0;32mI (452706) core_mqtt_agent_manager: Retry attempt 99.␛[0m
␛[0;31mE (452706) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (452706) esp-tls: Failed to open new connection␛[0m
␛[0;31mE (452736) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (455256) core_mqtt_agent_manager: Retry attempt 100.␛[0m
␛[0;31mE (455256) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (455256) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (456396) main: main loop␛[0m
␛[0;32mI (458626) core_mqtt_agent_manager: Retry attempt 101.␛[0m
␛[0;31mE (458626) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (458626) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (461656) core_mqtt_agent_manager: Retry attempt 102.␛[0m
␛[0;31mE (461656) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (461656) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (464296) core_mqtt_agent_manager: Retry attempt 103.␛[0m
␛[0;31mE (464296) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (464296) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (464736) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (464736) modem: PPP state changed event 5␛[0m
␛[0;32mI (464736) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (464736) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (466396) main: main loop␛[0m
␛[0;32mI (466586) core_mqtt_agent_manager: Retry attempt 104.␛[0m
␛[0;31mE (466586) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (466586) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (467296) core_mqtt_agent_manager: Retry attempt 105.␛[0m
␛[0;31mE (467296) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (467296) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (471776) core_mqtt_agent_manager: Retry attempt 106.␛[0m
␛[0;31mE (471776) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (471776) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (472716) core_mqtt_agent_manager: Retry attempt 107.␛[0m
␛[0;31mE (472716) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (472716) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (473746) modem: hangup Success␛[0m
␛[0;32mI (473786) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (476236) core_mqtt_agent_manager: Retry attempt 108.␛[0m
␛[0;31mE (476236) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (476236) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (476396) main: main loop␛[0m
␛[0;32mI (478626) core_mqtt_agent_manager: Retry attempt 109.␛[0m
␛[0;31mE (478626) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (478626) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (482866) core_mqtt_agent_manager: Retry attempt 110.␛[0m
␛[0;31mE (482866) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (482866) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (483076) core_mqtt_agent_manager: Retry attempt 111.␛[0m
␛[0;31mE (483076) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (483076) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (485516) core_mqtt_agent_manager: Retry attempt 112.␛[0m
␛[0;31mE (485516) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (485516) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (485606) core_mqtt_agent_manager: Retry attempt 113.␛[0m
␛[0;31mE (485606) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (485606) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (486396) main: main loop␛[0m
␛[0;32mI (488556) core_mqtt_agent_manager: Retry attempt 114.␛[0m
␛[0;31mE (488556) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (488556) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (492206) core_mqtt_agent_manager: Retry attempt 115.␛[0m
␛[0;31mE (492206) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (492206) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (494156) core_mqtt_agent_manager: Retry attempt 116.␛[0m
␛[0;31mE (494156) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (494156) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (496396) main: main loop␛[0m
␛[0;32mI (498376) core_mqtt_agent_manager: Retry attempt 117.␛[0m
␛[0;31mE (498376) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (498376) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (499886) core_mqtt_agent_manager: Retry attempt 118.␛[0m
␛[0;31mE (499886) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (499886) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (501266) core_mqtt_agent_manager: Retry attempt 119.␛[0m
␛[0;31mE (501266) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (501266) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (501516) core_mqtt_agent_manager: Retry attempt 120.␛[0m
␛[0;31mE (501516) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (501516) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (503796) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (504296) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (506396) main: main loop␛[0m
␛[0;32mI (506516) core_mqtt_agent_manager: Retry attempt 121.␛[0m
␛[0;31mE (506516) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (506516) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (508436) core_mqtt_agent_manager: Retry attempt 122.␛[0m
␛[0;31mE (508436) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (508436) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (510296) core_mqtt_agent_manager: Retry attempt 123.␛[0m
␛[0;31mE (510296) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (510296) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (514696) core_mqtt_agent_manager: Retry attempt 124.␛[0m
␛[0;31mE (514696) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (514696) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (516296) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (516296) modem: PPP state changed event 5␛[0m
␛[0;32mI (516296) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (516296) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (516396) main: main loop␛[0m
␛[0;32mI (518736) core_mqtt_agent_manager: Retry attempt 125.␛[0m
␛[0;31mE (518736) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (518736) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (523676) core_mqtt_agent_manager: Retry attempt 126.␛[0m
␛[0;31mE (523676) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (523676) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (525306) modem: hangup Success␛[0m
␛[0;32mI (525346) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (526396) main: main loop␛[0m
␛[0;32mI (527216) core_mqtt_agent_manager: Retry attempt 127.␛[0m
␛[0;31mE (527216) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (527216) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (530846) core_mqtt_agent_manager: Retry attempt 128.␛[0m
␛[0;31mE (530846) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (530846) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (531386) core_mqtt_agent_manager: Retry attempt 129.␛[0m
␛[0;31mE (531386) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (531386) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (535776) core_mqtt_agent_manager: Retry attempt 130.␛[0m
␛[0;31mE (535776) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (535776) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (535836) core_mqtt_agent_manager: Retry attempt 131.␛[0m
␛[0;31mE (535836) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (535836) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (536396) main: main loop␛[0m
␛[0;32mI (539986) core_mqtt_agent_manager: Retry attempt 132.␛[0m
␛[0;31mE (539986) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (539986) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (540056) core_mqtt_agent_manager: Retry attempt 133.␛[0m
␛[0;31mE (540056) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (540056) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (544726) core_mqtt_agent_manager: Retry attempt 134.␛[0m
␛[0;31mE (544726) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (544726) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (545566) core_mqtt_agent_manager: Retry attempt 135.␛[0m
␛[0;31mE (545566) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (545566) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (546396) main: main loop␛[0m
␛[0;32mI (548356) core_mqtt_agent_manager: Retry attempt 136.␛[0m
␛[0;31mE (548356) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (548356) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (550336) core_mqtt_agent_manager: Retry attempt 137.␛[0m
␛[0;31mE (550336) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (550336) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (551086) core_mqtt_agent_manager: Retry attempt 138.␛[0m
␛[0;31mE (551086) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (551086) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (555346) modem: 
start_network() wait timed out
␛[0m
␛[0;32mI (555726) core_mqtt_agent_manager: Retry attempt 139.␛[0m
␛[0;31mE (555726) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (555726) esp-tls: Failed to open new connection␛[0m
␛[0;31mE (555846) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (556396) main: main loop␛[0m
␛[0;32mI (556536) core_mqtt_agent_manager: Retry attempt 140.␛[0m
␛[0;31mE (556536) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (556536) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (559746) core_mqtt_agent_manager: Retry attempt 141.␛[0m
␛[0;31mE (559746) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (559746) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (562126) core_mqtt_agent_manager: Retry attempt 142.␛[0m
␛[0;31mE (562126) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (562126) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (564796) core_mqtt_agent_manager: Retry attempt 143.␛[0m
␛[0;31mE (564796) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (564796) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (565856) core_mqtt_agent_manager: Retry attempt 144.␛[0m
␛[0;31mE (565856) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (565856) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (566396) main: main loop␛[0m
␛[0;32mI (567846) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (567846) modem: PPP state changed event 5␛[0m
␛[0;32mI (567846) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (567846) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (570226) core_mqtt_agent_manager: Retry attempt 145.␛[0m
␛[0;31mE (570226) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (570226) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (572896) core_mqtt_agent_manager: Retry attempt 146.␛[0m
␛[0;31mE (572896) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (572896) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (572996) core_mqtt_agent_manager: Retry attempt 147.␛[0m
␛[0;31mE (572996) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (572996) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (574836) core_mqtt_agent_manager: Retry attempt 148.␛[0m
␛[0;31mE (574836) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (574836) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (576396) main: main loop␛[0m
␛[0;32mI (576856) modem: hangup Success␛[0m
␛[0;32mI (576896) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (579596) core_mqtt_agent_manager: Retry attempt 149.␛[0m
␛[0;31mE (579596) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (579596) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (581976) core_mqtt_agent_manager: Retry attempt 150.␛[0m
␛[0;31mE (581976) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (581976) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (583616) core_mqtt_agent_manager: Retry attempt 151.␛[0m
␛[0;31mE (583616) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (583616) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (584146) core_mqtt_agent_manager: Retry attempt 152.␛[0m
␛[0;31mE (584146) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (584146) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (586396) main: main loop␛[0m
␛[0;32mI (588036) core_mqtt_agent_manager: Retry attempt 153.␛[0m
␛[0;31mE (588036) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (588036) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (588556) core_mqtt_agent_manager: Retry attempt 154.␛[0m
␛[0;31mE (588556) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (588556) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (589996) core_mqtt_agent_manager: Retry attempt 155.␛[0m
␛[0;31mE (589996) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (589996) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (594756) core_mqtt_agent_manager: Retry attempt 156.␛[0m
␛[0;31mE (594756) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (594756) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (596396) main: main loop␛[0m
␛[0;32mI (599376) core_mqtt_agent_manager: Retry attempt 157.␛[0m
␛[0;31mE (599376) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (599376) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (600586) core_mqtt_agent_manager: Retry attempt 158.␛[0m
␛[0;31mE (600586) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (600586) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (604816) core_mqtt_agent_manager: Retry attempt 159.␛[0m
␛[0;31mE (604816) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (604816) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (606396) main: main loop␛[0m
␛[0;32mI (606896) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (607396) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (608096) core_mqtt_agent_manager: Retry attempt 160.␛[0m
␛[0;31mE (608096) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (608096) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (612276) core_mqtt_agent_manager: Retry attempt 161.␛[0m
␛[0;31mE (612276) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (612276) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (615826) core_mqtt_agent_manager: Retry attempt 162.␛[0m
␛[0;31mE (615826) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (615826) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (616396) main: main loop␛[0m
␛[0;32mI (618836) core_mqtt_agent_manager: Retry attempt 163.␛[0m
␛[0;31mE (618836) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (618836) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (619396) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (619396) modem: PPP state changed event 5␛[0m
␛[0;32mI (619396) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (619396) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (622606) core_mqtt_agent_manager: Retry attempt 164.␛[0m
␛[0;31mE (622606) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (622606) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (623136) core_mqtt_agent_manager: Retry attempt 165.␛[0m
␛[0;31mE (623136) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (623136) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (626396) main: main loop␛[0m
␛[0;32mI (626476) core_mqtt_agent_manager: Retry attempt 166.␛[0m
␛[0;31mE (626476) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (626476) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (628406) modem: hangup Success␛[0m
␛[0;32mI (628446) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (630066) core_mqtt_agent_manager: Retry attempt 167.␛[0m
␛[0;31mE (630066) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (630066) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (634886) core_mqtt_agent_manager: Retry attempt 168.␛[0m
␛[0;31mE (634886) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (634886) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (636396) main: main loop␛[0m
␛[0;32mI (639576) core_mqtt_agent_manager: Retry attempt 169.␛[0m
␛[0;31mE (639576) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (639576) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (644396) core_mqtt_agent_manager: Retry attempt 170.␛[0m
␛[0;31mE (644396) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (644396) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (646396) main: main loop␛[0m
␛[0;32mI (648286) core_mqtt_agent_manager: Retry attempt 171.␛[0m
␛[0;31mE (648286) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (648286) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (650286) core_mqtt_agent_manager: Retry attempt 172.␛[0m
␛[0;31mE (650286) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (650286) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (653956) core_mqtt_agent_manager: Retry attempt 173.␛[0m
␛[0;31mE (653956) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (653956) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (656396) main: main loop␛[0m
␛[0;32mI (657986) core_mqtt_agent_manager: Retry attempt 174.␛[0m
␛[0;31mE (657986) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (657986) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (658446) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (658946) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (661646) core_mqtt_agent_manager: Retry attempt 175.␛[0m
␛[0;31mE (661646) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (661646) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (666316) core_mqtt_agent_manager: Retry attempt 176.␛[0m
␛[0;31mE (666316) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (666316) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (666396) main: main loop␛[0m
␛[0;32mI (669986) core_mqtt_agent_manager: Retry attempt 177.␛[0m
␛[0;31mE (669986) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (669986) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (670946) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (670946) modem: PPP state changed event 5␛[0m
␛[0;32mI (670946) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (670946) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (674106) core_mqtt_agent_manager: Retry attempt 178.␛[0m
␛[0;31mE (674106) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (674106) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (675896) core_mqtt_agent_manager: Retry attempt 179.␛[0m
␛[0;31mE (675896) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (675896) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (676396) main: main loop␛[0m
␛[0;32mI (678586) core_mqtt_agent_manager: Retry attempt 180.␛[0m
␛[0;31mE (678586) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (678586) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (679956) modem: hangup Success␛[0m
␛[0;32mI (680006) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (681046) core_mqtt_agent_manager: Retry attempt 181.␛[0m
␛[0;31mE (681046) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (681046) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (683276) core_mqtt_agent_manager: Retry attempt 182.␛[0m
␛[0;31mE (683276) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (683276) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (684886) core_mqtt_agent_manager: Retry attempt 183.␛[0m
␛[0;31mE (684886) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (684886) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (686396) main: main loop␛[0m
␛[0;32mI (687106) core_mqtt_agent_manager: Retry attempt 184.␛[0m
␛[0;31mE (687106) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (687106) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (688356) core_mqtt_agent_manager: Retry attempt 185.␛[0m
␛[0;31mE (688356) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (688356) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (690316) core_mqtt_agent_manager: Retry attempt 186.␛[0m
␛[0;31mE (690316) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (690316) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (693836) core_mqtt_agent_manager: Retry attempt 187.␛[0m
␛[0;31mE (693836) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (693836) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (696396) main: main loop␛[0m
␛[0;32mI (698256) core_mqtt_agent_manager: Retry attempt 188.␛[0m
␛[0;31mE (698256) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (698256) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (698806) core_mqtt_agent_manager: Retry attempt 189.␛[0m
␛[0;31mE (698806) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (698806) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (701716) core_mqtt_agent_manager: Retry attempt 190.␛[0m
␛[0;31mE (701716) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (701716) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (701886) core_mqtt_agent_manager: Retry attempt 191.␛[0m
␛[0;31mE (701886) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (701886) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (705926) core_mqtt_agent_manager: Retry attempt 192.␛[0m
␛[0;31mE (705926) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (705926) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (706396) main: main loop␛[0m
␛[0;32mI (707986) core_mqtt_agent_manager: Retry attempt 193.␛[0m
␛[0;31mE (707986) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (707986) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (710006) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (710506) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (711186) core_mqtt_agent_manager: Retry attempt 194.␛[0m
␛[0;31mE (711186) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (711186) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (712516) core_mqtt_agent_manager: Retry attempt 195.␛[0m
␛[0;31mE (712516) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (712516) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (715246) core_mqtt_agent_manager: Retry attempt 196.␛[0m
␛[0;31mE (715246) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (715246) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (716396) main: main loop␛[0m
␛[0;32mI (719246) core_mqtt_agent_manager: Retry attempt 197.␛[0m
␛[0;31mE (719246) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (719246) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (720446) core_mqtt_agent_manager: Retry attempt 198.␛[0m
␛[0;31mE (720446) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (720446) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (722506) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (722506) modem: PPP state changed event 5␛[0m
␛[0;32mI (722506) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (722506) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (724036) core_mqtt_agent_manager: Retry attempt 199.␛[0m
␛[0;31mE (724036) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (724036) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (726396) main: main loop␛[0m
␛[0;32mI (726616) core_mqtt_agent_manager: Retry attempt 200.␛[0m
␛[0;31mE (726616) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (726616) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (726936) core_mqtt_agent_manager: Retry attempt 201.␛[0m
␛[0;31mE (726936) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (726936) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (730016) core_mqtt_agent_manager: Retry attempt 202.␛[0m
␛[0;31mE (730016) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (730016) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (731516) modem: hangup Success␛[0m
␛[0;32mI (731556) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (734926) core_mqtt_agent_manager: Retry attempt 203.␛[0m
␛[0;31mE (734926) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (734926) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (735356) core_mqtt_agent_manager: Retry attempt 204.␛[0m
␛[0;31mE (735356) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (735356) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (736396) main: main loop␛[0m
␛[0;32mI (740166) core_mqtt_agent_manager: Retry attempt 205.␛[0m
␛[0;31mE (740166) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (740166) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (744356) core_mqtt_agent_manager: Retry attempt 206.␛[0m
␛[0;31mE (744356) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (744356) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (746396) main: main loop␛[0m
␛[0;32mI (747746) core_mqtt_agent_manager: Retry attempt 207.␛[0m
␛[0;31mE (747746) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (747746) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (751406) core_mqtt_agent_manager: Retry attempt 208.␛[0m
␛[0;31mE (751406) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (751406) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (753126) core_mqtt_agent_manager: Retry attempt 209.␛[0m
␛[0;31mE (753126) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (753126) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (756396) main: main loop␛[0m
␛[0;32mI (757336) core_mqtt_agent_manager: Retry attempt 210.␛[0m
␛[0;31mE (757336) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (757336) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (761156) core_mqtt_agent_manager: Retry attempt 211.␛[0m
␛[0;31mE (761156) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (761156) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (761556) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (762056) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (763736) core_mqtt_agent_manager: Retry attempt 212.␛[0m
␛[0;31mE (763736) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (763736) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (766356) core_mqtt_agent_manager: Retry attempt 213.␛[0m
␛[0;31mE (766356) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (766356) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (766396) main: main loop␛[0m
␛[0;32mI (770176) core_mqtt_agent_manager: Retry attempt 214.␛[0m
␛[0;31mE (770176) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (770176) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (774056) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (774056) modem: PPP state changed event 5␛[0m
␛[0;32mI (774056) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (774056) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (774596) core_mqtt_agent_manager: Retry attempt 215.␛[0m
␛[0;31mE (774596) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (774596) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (776396) main: main loop␛[0m
␛[0;32mI (779026) core_mqtt_agent_manager: Retry attempt 216.␛[0m
␛[0;31mE (779026) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (779026) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (781866) core_mqtt_agent_manager: Retry attempt 217.␛[0m
␛[0;31mE (781866) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (781866) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (782566) core_mqtt_agent_manager: Retry attempt 218.␛[0m
␛[0;31mE (782566) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (782566) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (783066) modem: hangup Success␛[0m
␛[0;32mI (783076) core_mqtt_agent_manager: Retry attempt 219.␛[0m
␛[0;31mE (783076) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (783076) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (783106) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (786396) main: main loop␛[0m
␛[0;32mI (786846) core_mqtt_agent_manager: Retry attempt 220.␛[0m
␛[0;31mE (786846) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (786846) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (791006) core_mqtt_agent_manager: Retry attempt 221.␛[0m
␛[0;31mE (791006) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (791006) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (792666) core_mqtt_agent_manager: Retry attempt 222.␛[0m
␛[0;31mE (792666) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (792666) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (796396) main: main loop␛[0m
␛[0;32mI (796906) core_mqtt_agent_manager: Retry attempt 223.␛[0m
␛[0;31mE (796906) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (796906) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (798786) core_mqtt_agent_manager: Retry attempt 224.␛[0m
␛[0;31mE (798786) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (798786) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (799156) core_mqtt_agent_manager: Retry attempt 225.␛[0m
␛[0;31mE (799156) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (799156) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (799466) core_mqtt_agent_manager: Retry attempt 226.␛[0m
␛[0;31mE (799466) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (799466) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (802366) core_mqtt_agent_manager: Retry attempt 227.␛[0m
␛[0;31mE (802366) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (802366) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (803066) core_mqtt_agent_manager: Retry attempt 228.␛[0m
␛[0;31mE (803066) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (803066) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (806396) main: main loop␛[0m
␛[0;32mI (806486) core_mqtt_agent_manager: Retry attempt 229.␛[0m
␛[0;31mE (806486) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (806486) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (809776) core_mqtt_agent_manager: Retry attempt 230.␛[0m
␛[0;31mE (809776) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (809776) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (810706) core_mqtt_agent_manager: Retry attempt 231.␛[0m
␛[0;31mE (810706) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (810706) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (812236) core_mqtt_agent_manager: Retry attempt 232.␛[0m
␛[0;31mE (812236) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (812236) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (813106) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (813606) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (816396) main: main loop␛[0m
␛[0;32mI (816656) core_mqtt_agent_manager: Retry attempt 233.␛[0m
␛[0;31mE (816656) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (816656) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (820076) core_mqtt_agent_manager: Retry attempt 234.␛[0m
␛[0;31mE (820076) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (820076) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (821786) core_mqtt_agent_manager: Retry attempt 235.␛[0m
␛[0;31mE (821786) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (821786) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (822496) core_mqtt_agent_manager: Retry attempt 236.␛[0m
␛[0;31mE (822496) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (822496) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (823416) core_mqtt_agent_manager: Retry attempt 237.␛[0m
␛[0;31mE (823416) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (823416) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (825606) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (825606) modem: PPP state changed event 5␛[0m
␛[0;32mI (825606) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (825606) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (826396) main: main loop␛[0m
␛[0;32mI (826966) core_mqtt_agent_manager: Retry attempt 238.␛[0m
␛[0;31mE (826966) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (826966) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (828576) core_mqtt_agent_manager: Retry attempt 239.␛[0m
␛[0;31mE (828576) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (828576) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (832776) core_mqtt_agent_manager: Retry attempt 240.␛[0m
␛[0;31mE (832776) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (832776) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (834616) modem: hangup Success␛[0m
␛[0;32mI (834656) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (836166) core_mqtt_agent_manager: Retry attempt 241.␛[0m
␛[0;31mE (836166) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (836166) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (836396) main: main loop␛[0m
␛[0;32mI (837796) core_mqtt_agent_manager: Retry attempt 242.␛[0m
␛[0;31mE (837796) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (837796) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (842166) core_mqtt_agent_manager: Retry attempt 243.␛[0m
␛[0;31mE (842166) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (842166) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (842556) core_mqtt_agent_manager: Retry attempt 244.␛[0m
␛[0;31mE (842556) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (842556) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (846396) main: main loop␛[0m
␛[0;32mI (847416) core_mqtt_agent_manager: Retry attempt 245.␛[0m
␛[0;31mE (847416) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (847416) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (849296) core_mqtt_agent_manager: Retry attempt 246.␛[0m
␛[0;31mE (849296) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (849296) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (854046) core_mqtt_agent_manager: Retry attempt 247.␛[0m
␛[0;31mE (854046) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (854046) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (856396) main: main loop␛[0m
␛[0;32mI (857426) core_mqtt_agent_manager: Retry attempt 248.␛[0m
␛[0;31mE (857426) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (857426) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (859716) core_mqtt_agent_manager: Retry attempt 249.␛[0m
␛[0;31mE (859716) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (859716) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (863826) core_mqtt_agent_manager: Retry attempt 250.␛[0m
␛[0;31mE (863826) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (863826) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (864656) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (865156) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (866396) main: main loop␛[0m
␛[0;32mI (868546) core_mqtt_agent_manager: Retry attempt 251.␛[0m
␛[0;31mE (868546) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (868546) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (869776) core_mqtt_agent_manager: Retry attempt 252.␛[0m
␛[0;31mE (869776) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (869776) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (871806) core_mqtt_agent_manager: Retry attempt 253.␛[0m
␛[0;31mE (871806) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (871806) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (872206) core_mqtt_agent_manager: Retry attempt 254.␛[0m
␛[0;31mE (872206) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (872206) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (873866) core_mqtt_agent_manager: Retry attempt 255.␛[0m
␛[0;31mE (873866) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (873866) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (876286) core_mqtt_agent_manager: Retry attempt 256.␛[0m
␛[0;31mE (876286) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (876286) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (876396) main: main loop␛[0m
␛[0;32mI (877156) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (877156) modem: PPP state changed event 5␛[0m
␛[0;32mI (877156) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (877156) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (878786) core_mqtt_agent_manager: Retry attempt 257.␛[0m
␛[0;31mE (878786) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (878786) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (882066) core_mqtt_agent_manager: Retry attempt 258.␛[0m
␛[0;31mE (882066) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (882066) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (883506) core_mqtt_agent_manager: Retry attempt 259.␛[0m
␛[0;31mE (883506) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (883506) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (883906) core_mqtt_agent_manager: Retry attempt 260.␛[0m
␛[0;31mE (883906) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (883906) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (886166) modem: hangup Success␛[0m
␛[0;32mI (886206) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (886396) main: main loop␛[0m
␛[0;32mI (886606) core_mqtt_agent_manager: Retry attempt 261.␛[0m
␛[0;31mE (886606) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (886606) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (887546) core_mqtt_agent_manager: Retry attempt 262.␛[0m
␛[0;31mE (887546) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (887546) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (888246) core_mqtt_agent_manager: Retry attempt 263.␛[0m
␛[0;31mE (888246) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (888246) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (892276) core_mqtt_agent_manager: Retry attempt 264.␛[0m
␛[0;31mE (892276) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (892276) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (896396) main: main loop␛[0m
␛[0;32mI (897116) core_mqtt_agent_manager: Retry attempt 265.␛[0m
␛[0;31mE (897116) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (897116) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (899326) core_mqtt_agent_manager: Retry attempt 266.␛[0m
␛[0;31mE (899326) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (899326) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (900656) core_mqtt_agent_manager: Retry attempt 267.␛[0m
␛[0;31mE (900656) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (900656) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (902706) core_mqtt_agent_manager: Retry attempt 268.␛[0m
␛[0;31mE (902706) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (902706) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (902956) core_mqtt_agent_manager: Retry attempt 269.␛[0m
␛[0;31mE (902956) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (902956) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (905136) core_mqtt_agent_manager: Retry attempt 270.␛[0m
␛[0;31mE (905136) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (905136) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (906396) main: main loop␛[0m
␛[0;32mI (909956) core_mqtt_agent_manager: Retry attempt 271.␛[0m
␛[0;31mE (909956) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (909956) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (913586) core_mqtt_agent_manager: Retry attempt 272.␛[0m
␛[0;31mE (913586) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (913586) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (914686) core_mqtt_agent_manager: Retry attempt 273.␛[0m
␛[0;31mE (914686) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (914686) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (915246) core_mqtt_agent_manager: Retry attempt 274.␛[0m
␛[0;31mE (915246) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (915246) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (916206) modem: 
start_network() wait timed out
␛[0m
␛[0;32mI (916396) main: main loop␛[0m
␛[0;31mE (916706) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (918406) core_mqtt_agent_manager: Retry attempt 275.␛[0m
␛[0;31mE (918406) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (918406) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (920036) core_mqtt_agent_manager: Retry attempt 276.␛[0m
␛[0;31mE (920036) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (920036) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (923116) core_mqtt_agent_manager: Retry attempt 277.␛[0m
␛[0;31mE (923116) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (923116) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (924526) core_mqtt_agent_manager: Retry attempt 278.␛[0m
␛[0;31mE (924526) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (924526) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (926396) main: main loop␛[0m
␛[0;32mI (926436) core_mqtt_agent_manager: Retry attempt 279.␛[0m
␛[0;31mE (926436) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (926436) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (928706) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (928706) modem: PPP state changed event 5␛[0m
␛[0;32mI (928706) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (928706) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (929616) core_mqtt_agent_manager: Retry attempt 280.␛[0m
␛[0;31mE (929616) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (929616) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (931186) core_mqtt_agent_manager: Retry attempt 281.␛[0m
␛[0;31mE (931186) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (931186) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (935486) core_mqtt_agent_manager: Retry attempt 282.␛[0m
␛[0;31mE (935486) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (935486) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (936396) main: main loop␛[0m
␛[0;32mI (937716) modem: hangup Success␛[0m
␛[0;32mI (937756) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (939556) core_mqtt_agent_manager: Retry attempt 283.␛[0m
␛[0;31mE (939556) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (939556) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (940526) core_mqtt_agent_manager: Retry attempt 284.␛[0m
␛[0;31mE (940526) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (940526) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (942346) core_mqtt_agent_manager: Retry attempt 285.␛[0m
␛[0;31mE (942346) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (942346) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (944106) core_mqtt_agent_manager: Retry attempt 286.␛[0m
␛[0;31mE (944106) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (944106) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (946396) main: main loop␛[0m
␛[0;32mI (948486) core_mqtt_agent_manager: Retry attempt 287.␛[0m
␛[0;31mE (948486) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (948486) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (952866) core_mqtt_agent_manager: Retry attempt 288.␛[0m
␛[0;31mE (952866) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (952866) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (956086) core_mqtt_agent_manager: Retry attempt 289.␛[0m
␛[0;31mE (956086) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (956086) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (956396) main: main loop␛[0m
␛[0;32mI (957146) core_mqtt_agent_manager: Retry attempt 290.␛[0m
␛[0;31mE (957146) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (957146) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (957936) core_mqtt_agent_manager: Retry attempt 291.␛[0m
␛[0;31mE (957936) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (957936) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (961466) core_mqtt_agent_manager: Retry attempt 292.␛[0m
␛[0;31mE (961466) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (961466) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (965026) core_mqtt_agent_manager: Retry attempt 293.␛[0m
␛[0;31mE (965026) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (965026) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (966396) main: main loop␛[0m
␛[0;32mI (967756) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (968256) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (969296) core_mqtt_agent_manager: Retry attempt 294.␛[0m
␛[0;31mE (969296) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (969296) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (971096) core_mqtt_agent_manager: Retry attempt 295.␛[0m
␛[0;31mE (971096) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (971096) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (972696) core_mqtt_agent_manager: Retry attempt 296.␛[0m
␛[0;31mE (972696) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (972696) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (974156) core_mqtt_agent_manager: Retry attempt 297.␛[0m
␛[0;31mE (974156) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (974156) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (976396) main: main loop␛[0m
␛[0;32mI (978336) core_mqtt_agent_manager: Retry attempt 298.␛[0m
␛[0;31mE (978336) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (978336) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (980256) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (980256) modem: PPP state changed event 5␛[0m
␛[0;32mI (980256) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (980256) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (981416) core_mqtt_agent_manager: Retry attempt 299.␛[0m
␛[0;31mE (981416) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (981416) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (983336) core_mqtt_agent_manager: Retry attempt 300.␛[0m
␛[0;31mE (983336) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (983336) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (985156) core_mqtt_agent_manager: Retry attempt 301.␛[0m
␛[0;31mE (985156) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (985156) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (986396) main: main loop␛[0m
␛[0;32mI (987916) core_mqtt_agent_manager: Retry attempt 302.␛[0m
␛[0;31mE (987916) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (987916) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (988596) core_mqtt_agent_manager: Retry attempt 303.␛[0m
␛[0;31mE (988596) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (988596) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (989266) modem: hangup Success␛[0m
␛[0;32mI (989306) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (990716) core_mqtt_agent_manager: Retry attempt 304.␛[0m
␛[0;31mE (990716) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (990716) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (992806) core_mqtt_agent_manager: Retry attempt 305.␛[0m
␛[0;31mE (992806) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (992806) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (995546) core_mqtt_agent_manager: Retry attempt 306.␛[0m
␛[0;31mE (995546) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (995546) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (996396) main: main loop␛[0m
␛[0;32mI (999796) core_mqtt_agent_manager: Retry attempt 307.␛[0m
␛[0;31mE (999796) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (999796) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1004286) core_mqtt_agent_manager: Retry attempt 308.␛[0m
␛[0;31mE (1004286) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1004286) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1006396) main: main loop␛[0m
␛[0;32mI (1007286) core_mqtt_agent_manager: Retry attempt 309.␛[0m
␛[0;31mE (1007286) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1007286) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1007936) core_mqtt_agent_manager: Retry attempt 310.␛[0m
␛[0;31mE (1007936) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1007936) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1009616) core_mqtt_agent_manager: Retry attempt 311.␛[0m
␛[0;31mE (1009616) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1009616) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1011266) core_mqtt_agent_manager: Retry attempt 312.␛[0m
␛[0;31mE (1011266) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1011266) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1016266) core_mqtt_agent_manager: Retry attempt 313.␛[0m
␛[0;31mE (1016266) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1016266) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1016396) main: main loop␛[0m
␛[0;32mI (1019306) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (1019806) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (1020696) core_mqtt_agent_manager: Retry attempt 314.␛[0m
␛[0;31mE (1020696) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1020696) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1024506) core_mqtt_agent_manager: Retry attempt 315.␛[0m
␛[0;31mE (1024506) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1024506) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1025276) core_mqtt_agent_manager: Retry attempt 316.␛[0m
␛[0;31mE (1025276) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1025276) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1025516) core_mqtt_agent_manager: Retry attempt 317.␛[0m
␛[0;31mE (1025516) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1025516) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1026396) main: main loop␛[0m
␛[0;32mI (1027706) core_mqtt_agent_manager: Retry attempt 318.␛[0m
␛[0;31mE (1027706) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1027706) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1031136) core_mqtt_agent_manager: Retry attempt 319.␛[0m
␛[0;31mE (1031136) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1031136) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1031806) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (1031806) modem: PPP state changed event 5␛[0m
␛[0;32mI (1031806) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (1031806) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (1034586) core_mqtt_agent_manager: Retry attempt 320.␛[0m
␛[0;31mE (1034586) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1034586) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1035416) core_mqtt_agent_manager: Retry attempt 321.␛[0m
␛[0;31mE (1035416) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1035416) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1036396) main: main loop␛[0m
␛[0;32mI (1036646) core_mqtt_agent_manager: Retry attempt 322.␛[0m
␛[0;31mE (1036646) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1036646) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1040816) modem: hangup Success␛[0m
␛[0;32mI (1040856) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (1041016) core_mqtt_agent_manager: Retry attempt 323.␛[0m
␛[0;31mE (1041016) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1041016) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1045876) core_mqtt_agent_manager: Retry attempt 324.␛[0m
␛[0;31mE (1045876) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1045876) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1046396) main: main loop␛[0m
␛[0;32mI (1047466) core_mqtt_agent_manager: Retry attempt 325.␛[0m
␛[0;31mE (1047466) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1047466) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1049546) core_mqtt_agent_manager: Retry attempt 326.␛[0m
␛[0;31mE (1049546) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1049546) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1051456) core_mqtt_agent_manager: Retry attempt 327.␛[0m
␛[0;31mE (1051456) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1051456) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1052006) core_mqtt_agent_manager: Retry attempt 328.␛[0m
␛[0;31mE (1052006) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1052006) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1055396) core_mqtt_agent_manager: Retry attempt 329.␛[0m
␛[0;31mE (1055396) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1055396) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1056396) main: main loop␛[0m
␛[0;32mI (1060216) core_mqtt_agent_manager: Retry attempt 330.␛[0m
␛[0;31mE (1060216) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1060216) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1061716) core_mqtt_agent_manager: Retry attempt 331.␛[0m
␛[0;31mE (1061716) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1061716) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1065776) core_mqtt_agent_manager: Retry attempt 332.␛[0m
␛[0;31mE (1065776) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1065776) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1066396) main: main loop␛[0m
␛[0;32mI (1067646) core_mqtt_agent_manager: Retry attempt 333.␛[0m
␛[0;31mE (1067646) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1067646) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1068506) core_mqtt_agent_manager: Retry attempt 334.␛[0m
␛[0;31mE (1068506) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1068506) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1070716) core_mqtt_agent_manager: Retry attempt 335.␛[0m
␛[0;31mE (1070716) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1070716) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1070866) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (1071366) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (1074036) core_mqtt_agent_manager: Retry attempt 336.␛[0m
␛[0;31mE (1074036) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1074036) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1074516) core_mqtt_agent_manager: Retry attempt 337.␛[0m
␛[0;31mE (1074516) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1074516) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1074866) core_mqtt_agent_manager: Retry attempt 338.␛[0m
␛[0;31mE (1074866) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1074866) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1076396) main: main loop␛[0m
␛[0;32mI (1079756) core_mqtt_agent_manager: Retry attempt 339.␛[0m
␛[0;31mE (1079756) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1079756) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1083366) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (1083366) modem: PPP state changed event 5␛[0m
␛[0;32mI (1083366) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (1083366) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (1084246) core_mqtt_agent_manager: Retry attempt 340.␛[0m
␛[0;31mE (1084246) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1084246) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1086176) core_mqtt_agent_manager: Retry attempt 341.␛[0m
␛[0;31mE (1086176) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1086176) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1086396) main: main loop␛[0m
␛[0;32mI (1086876) core_mqtt_agent_manager: Retry attempt 342.␛[0m
␛[0;31mE (1086876) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1086876) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1087456) core_mqtt_agent_manager: Retry attempt 343.␛[0m
␛[0;31mE (1087456) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1087456) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1089376) core_mqtt_agent_manager: Retry attempt 344.␛[0m
␛[0;31mE (1089376) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1089376) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1089536) core_mqtt_agent_manager: Retry attempt 345.␛[0m
␛[0;31mE (1089536) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1089536) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1092376) modem: hangup Success␛[0m
␛[0;32mI (1092416) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (1093316) core_mqtt_agent_manager: Retry attempt 346.␛[0m
␛[0;31mE (1093316) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1093316) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1096246) core_mqtt_agent_manager: Retry attempt 347.␛[0m
␛[0;31mE (1096246) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1096246) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1096396) main: main loop␛[0m
␛[0;32mI (1096506) core_mqtt_agent_manager: Retry attempt 348.␛[0m
␛[0;31mE (1096506) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1096506) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1099986) core_mqtt_agent_manager: Retry attempt 349.␛[0m
␛[0;31mE (1099986) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1099986) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1101156) core_mqtt_agent_manager: Retry attempt 350.␛[0m
␛[0;31mE (1101156) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1101156) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1104336) core_mqtt_agent_manager: Retry attempt 351.␛[0m
␛[0;31mE (1104336) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1104336) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1105806) core_mqtt_agent_manager: Retry attempt 352.␛[0m
␛[0;31mE (1105806) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1105806) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1106396) main: main loop␛[0m
␛[0;32mI (1109286) core_mqtt_agent_manager: Retry attempt 353.␛[0m
␛[0;31mE (1109286) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1109286) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1111316) core_mqtt_agent_manager: Retry attempt 354.␛[0m
␛[0;31mE (1111316) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1111316) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1115896) core_mqtt_agent_manager: Retry attempt 355.␛[0m
␛[0;31mE (1115896) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1115896) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1116396) main: main loop␛[0m
␛[0;32mI (1118816) core_mqtt_agent_manager: Retry attempt 356.␛[0m
␛[0;31mE (1118816) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1118816) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1122416) modem: 
start_network() wait timed out
␛[0m
␛[0;31mE (1122916) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (1123506) core_mqtt_agent_manager: Retry attempt 357.␛[0m
␛[0;31mE (1123506) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1123506) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1125276) core_mqtt_agent_manager: Retry attempt 358.␛[0m
␛[0;31mE (1125276) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1125276) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1126396) main: main loop␛[0m
␛[0;32mI (1126636) core_mqtt_agent_manager: Retry attempt 359.␛[0m
␛[0;31mE (1126636) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1126636) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1126806) core_mqtt_agent_manager: Retry attempt 360.␛[0m
␛[0;31mE (1126806) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1126806) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1130936) core_mqtt_agent_manager: Retry attempt 361.␛[0m
␛[0;31mE (1130936) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1130936) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1134666) core_mqtt_agent_manager: Retry attempt 362.␛[0m
␛[0;31mE (1134666) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1134666) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1134916) esp-netif_lwip-ppp: User interrupt␛[0m
␛[0;32mI (1134916) modem: PPP state changed event 5␛[0m
␛[0;32mI (1134916) modem: User interrupted event from netif:0x3fcc215c␛[0m
␛[0;32mI (1134916) esp_modem_netif: PPP state changed event 5␛[0m
␛[0;32mI (1136396) main: main loop␛[0m
␛[0;32mI (1139036) core_mqtt_agent_manager: Retry attempt 363.␛[0m
␛[0;31mE (1139036) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1139036) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1140366) core_mqtt_agent_manager: Retry attempt 364.␛[0m
␛[0;31mE (1140366) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1140366) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1143926) modem: hangup Success␛[0m
␛[0;32mI (1143966) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (1144636) core_mqtt_agent_manager: Retry attempt 365.␛[0m
␛[0;31mE (1144636) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1144636) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1146396) main: main loop␛[0m
␛[0;32mI (1146946) core_mqtt_agent_manager: Retry attempt 366.␛[0m
␛[0;31mE (1146946) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1146946) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1149116) core_mqtt_agent_manager: Retry attempt 367.␛[0m
␛[0;31mE (1149116) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1149116) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1150946) core_mqtt_agent_manager: Retry attempt 368.␛[0m
␛[0;31mE (1150946) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1150946) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1154816) core_mqtt_agent_manager: Retry attempt 369.␛[0m
␛[0;31mE (1154816) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1154816) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1156236) core_mqtt_agent_manager: Retry attempt 370.␛[0m
␛[0;31mE (1156236) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1156236) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1156396) main: main loop␛[0m
␛[0;32mI (1160656) core_mqtt_agent_manager: Retry attempt 371.␛[0m
␛[0;31mE (1160656) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1160656) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1165616) core_mqtt_agent_manager: Retry attempt 372.␛[0m
␛[0;31mE (1165616) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1165616) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1166396) main: main loop␛[0m
␛[0;32mI (1168226) core_mqtt_agent_manager: Retry attempt 373.␛[0m
␛[0;31mE (1168226) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1168226) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1169836) core_mqtt_agent_manager: Retry attempt 374.␛[0m
␛[0;31mE (1169836) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1169836) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1171776) core_mqtt_agent_manager: Retry attempt 375.␛[0m
␛[0;31mE (1171776) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1171776) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1173966) modem: 
start_network() wait timed out
␛[0m
␛[0;32mI (1174116) core_mqtt_agent_manager: Retry attempt 376.␛[0m
␛[0;31mE (1174116) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1174116) esp-tls: Failed to open new connection␛[0m
␛[0;31mE (1174466) modem: Modem does not respond, maybe in DATA mode? ...exiting network mode␛[0m
␛[0;32mI (1176396) main: main loop␛[0m
␛[0;32mI (1178516) core_mqtt_agent_manager: Retry attempt 377.␛[0m
␛[0;31mE (1178516) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1178516) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1181516) core_mqtt_agent_manager: Retry attempt 378.␛[0m
␛[0;31mE (1181516) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1181516) esp-tls: Failed to open new connection␛[0m
␛[0;32mI (1181796) core_mqtt_agent_manager: Retry attempt 379.␛[0m
␛[0;31mE (1181796) esp-tls: couldn't get hostname for :a33r9jdykzz67v-ats.iot.us-west-2.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0␛[0m
␛[0;31mE (1181796) esp-tls: Failed to open new connection␛[0m

here is where I give up after 15 minutes and press reset

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3818,len:0x1fcc
load:0x403c9700,len:0x4
load:0x403c9704,len:0xda0
load:0x403cc700,len:0x31c4
entry 0x403c9950
␛[0;32mI (27) boot: ESP-IDF 5.1.1 2nd stage bootloader␛[0m
␛[0;32mI (27) boot: compile time Dec  5 2023 08:58:16␛[0m
␛[0;32mI (27) boot: Multicore bootloader␛[0m
D (30) bootloader_flash: XMC chip detected by RDID (00204017), skip.␛[0m
D (36) bootloader_flash: mmu set block paddr=0x00000000 (was 0xffffffff)␛[0m
␛[0;32mI (43) boot: chip revision: v0.1␛[0m
D (47) boot.esp32s3: magic e9␛[0m
D (50) boot.esp32s3: segments 04␛[0m
D (53) boot.esp32s3: spi_mode 02␛[0m
D (56) boot.esp32s3: spi_speed 0f␛[0m
D (60) boot.esp32s3: spi_size 03␛[0m
␛[0;32mI (63) boot.esp32s3: Boot SPI Speed : 80MHz␛[0m
␛[0;32mI (68) boot.esp32s3: SPI Mode       : DIO␛[0m
␛[0;32mI (73) boot.esp32s3: SPI Flash Size : 8MB␛[0m
D (77) boot: Enabling RTCWDT(9000 ms)␛[0m
␛[0;32mI (81) boot: Enabling RNG early entropy source...␛[0m
D (87) bootloader_flash: rodata starts from paddr=0x00008000, size=0xc00, will be mapped to vaddr=0x3c000000␛[0m
D (96) boot: mapped partition table 0x8000 at 0x3c008000␛[0m
D (102) flash_parts: partition table verified, 7 entries␛[0m
␛[0;32mI (107) boot: Partition Table:␛[0m
␛[0;32mI (111) boot: ## Label            Usage          Type ST Offset   Length␛[0m
D (118) boot: load partition table entry 0x3c008000␛[0m
D (123) boot: type=1 subtype=2␛[0m
␛[0;32mI (126) boot:  0 nvs              WiFi data        01 02 00009000 00002000␛[0m
D (134) boot: load partition table entry 0x3c008020␛[0m
D (139) boot: type=1 subtype=82␛[0m
␛[0;32mI (142) boot:  1 storage          Unknown data     01 82 0000b000 00004000␛[0m
D (150) boot: load partition table entry 0x3c008040␛[0m
D (155) boot: type=1 subtype=0␛[0m
␛[0;32mI (158) boot:  2 otadata          OTA data         01 00 0000f000 00002000␛[0m
D (165) boot: load partition table entry 0x3c008060␛[0m
D (170) boot: type=1 subtype=1␛[0m
␛[0;32mI (173) boot:  3 phy_init         RF data          01 01 00011000 00001000␛[0m
D (181) boot: load partition table entry 0x3c008080␛[0m
D (186) boot: type=0 subtype=10␛[0m
␛[0;32mI (189) boot:  4 ota_0            OTA app          00 10 00020000 001a0000␛[0m
D (197) boot: load partition table entry 0x3c0080a0␛[0m
D (202) boot: type=0 subtype=11␛[0m
␛[0;32mI (205) boot:  5 ota_1            OTA app          00 11 001c0000 001a0000␛[0m
␛[0;32mI (212) boot: End of partition table␛[0m
D (217) boot: OTA data offset 0xf000␛[0m
D (220) bootloader_flash: rodata starts from paddr=0x0000f000, size=0x2000, will be mapped to vaddr=0x3c000000␛[0m
D (230) boot: otadata[0]: sequence values 0x00000001␛[0m
D (235) boot: otadata[1]: sequence values 0xffffffff␛[0m
D (240) boot_comm: Only otadata[0] is valid␛[0m
D (245) boot: Active otadata[0]␛[0m
D (248) boot: Mapping seq 0 -> OTA slot 0␛[0m
D (252) boot: Trying partition index 0 offs 0x20000 size 0x1a0000␛[0m
D (258) esp_image: reading image header @ 0x20000␛[0m
D (263) bootloader_flash: mmu set block paddr=0x00020000 (was 0xffffffff)␛[0m
D (270) esp_image: image header: 0xe9 0x05 0x02 0x03 40375fc8␛[0m
␛[0;32mI (275) esp_image: segment 0: paddr=00020020 vaddr=3c090020 size=33adch (211676) map␛[0m
D (284) esp_image: free data page_count 0x00000200␛[0m
D (289) bootloader_flash: rodata starts from paddr=0x00020020, size=0x33adc, will be mapped to vaddr=0x3c000000␛[0m
D (338) bootloader_flash: mmu set block paddr=0x00050000 (was 0xffffffff)␛[0m
␛[0;32mI (338) esp_image: segment 1: paddr=00053b04 vaddr=3fc93f00 size=03634h ( 13876) load␛[0m
D (342) esp_image: free data page_count 0x00000200␛[0m
D (347) bootloader_flash: rodata starts from paddr=0x00053b04, size=0x3634, will be mapped to vaddr=0x3c000000␛[0m
D (360) bootloader_flash: mmu set block paddr=0x00050000 (was 0xffffffff)␛[0m
␛[0;32mI (364) esp_image: segment 2: paddr=00057140 vaddr=40374000 size=08ed8h ( 36568) load␛[0m
D (372) esp_image: free data page_count 0x00000200␛[0m
D (377) bootloader_flash: rodata starts from paddr=0x00057140, size=0x8ed8, will be mapped to vaddr=0x3c000000␛[0m
D (395) bootloader_flash: mmu set block paddr=0x00060000 (was 0xffffffff)␛[0m
␛[0;32mI (395) esp_image: segment 3: paddr=00060020 vaddr=42000020 size=804e4h (525540) map␛[0m
D (402) esp_image: free data page_count 0x00000200␛[0m
D (407) bootloader_flash: rodata starts from paddr=0x00060020, size=0x804e4, will be mapped to vaddr=0x3c000000␛[0m
D (513) bootloader_flash: mmu set block paddr=0x000e0000 (was 0xffffffff)␛[0m
␛[0;32mI (513) esp_image: segment 4: paddr=000e050c vaddr=4037ced8 size=06fbch ( 28604) load␛[0m
D (517) esp_image: free data page_count 0x00000200␛[0m
D (522) bootloader_flash: rodata starts from paddr=0x000e050c, size=0x6fbc, will be mapped to vaddr=0x3c000000␛[0m
D (539) bootloader_flash: mmu set block paddr=0x000e0000 (was 0xffffffff)␛[0m
␛[0;32mI (546) boot: Loaded app from partition at offset 0x20000␛[0m
␛[0;32mI (546) boot: Disabling RNG early entropy source...␛[0m
D (551) boot: Mapping segment 0 as DROM␛[0m
D (555) boot: Mapping segment 3 as IROM␛[0m
D (559) boot: calling set_cache_and_start_app␛[0m
D (563) boot: configure drom and irom and start␛[0m
D (568) boot: start: 0x40375fc8␛[0m
␛[0;32mI (582) cpu_start: Multicore app␛[0m
␛[0;32mI (583) cpu_start: Pro cpu up.␛[0m
␛[0;32mI (583) cpu_start: Starting app cpu, entry point is 0x40375ea0␛[0m
␛[0;32mI (0) cpu_start: App cpu up.␛[0m
␛[0;32mI (601) cpu_start: Pro cpu start user code␛[0m
␛[0;32mI (601) cpu_start: cpu freq: 160000000 Hz␛[0m
␛[0;32mI (601) cpu_start: Application information:␛[0m
␛[0;32mI (604) cpu_start: Project name:     ocular␛[0m
␛[0;32mI (609) cpu_start: App version:      v0.1-4-g9509c3f-dirty␛[0m
␛[0;32mI (615) cpu_start: Compile time:     Dec  5 2023 08:57:58␛[0m
␛[0;32mI (621) cpu_start: ELF file SHA256:  5531c35dd6c6babb...␛[0m
␛[0;32mI (627) cpu_start: ESP-IDF:          5.1.1␛[0m
␛[0;32mI (632) cpu_start: Min chip rev:     v0.0␛[0m
␛[0;32mI (636) cpu_start: Max chip rev:     v0.99 ␛[0m
␛[0;32mI (641) cpu_start: Chip rev:         v0.1␛[0m
␛[0;32mI (646) heap_init: Initializing. RAM available for dynamic allocation:␛[0m
␛[0;32mI (653) heap_init: At 3FCAB880 len 0003DE90 (247 KiB): DRAM␛[0m
␛[0;32mI (659) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM␛[0m
␛[0;32mI (666) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM␛[0m
␛[0;32mI (672) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM␛[0m
␛[0;32mI (680) spi_flash: detected chip: generic␛[0m
␛[0;32mI (683) spi_flash: flash io: dio␛[0m
␛[0;32mI (688) sleep: Configure to isolate all GPIO pins in sleep state␛[0m
␛[0;32mI (694) sleep: Enable automatic switching of GPIO sleep configuration␛[0m
␛[0;32mI (701) app_start: Starting scheduler on CPU0␛[0m
␛[0;32mI (706) app_start: Starting scheduler on CPU1␛[0m
␛[0;32mI (706) main_task: Started on CPU0␛[0m
␛[0;32mI (716) main_task: Calling app_main()␛[0m
␛[0;32mI (716) main: 
*************
new firmware v1.1.2!
*************

␛[0m
␛[0;32mI (726) main: [APP] Startup..␛[0m
␛[0;32mI (726) main: [APP] Free memory: 288420 bytes␛[0m
␛[0;32mI (736) main: [APP] IDF version: 5.1.1␛[0m
␛[0;32mI (756) main: Initializing SPIFFS␛[0m
␛[0;32mI (1206) ocular_ota: OTA over MQTT demo, Application version 1.1.2␛[0m
␛[0;32mI (1206) AWS_OTA: otaPal_GetPlatformImageState␛[0m
␛[0;32mI (1216) esp_ota_ops: aws_esp_ota_get_boot_flags: 1␛[0m
␛[0;32mI (1226) esp_ota_ops: [0] aflags/seq:0x2/0x1, pflags/seq:0xffffffff/0x0␛[0m
␛[0;32mI (1226) AWS_OTA: Current State=[RequestingJob], Event=[Start], New state=[RequestingJob]␛[0m
␛[0;31mE (1236) coreMQTT: pMqttAgentContext must have initialized its messaging interface.␛[0m
␛[0;31mE (1246) ocular_ota: Failed to SUBSCRIBE to topic with error = 1.␛[0m
␛[0;31mE (1256) AWS_OTA: Failed to subscribe to MQTT topic: subscribe returned error: OtaMqttStatus_t=OtaMqttSubscribeFailed, topic=$aws/things/7cdfa1e7c6cc/jobs/notify-next␛[0m
␛[0;32mI (1266) AWS_OTA: Current State=[RequestingJob], Event=[RequestJobDocument], New state=[WaitingForJob]␛[0m
␛[0;32mI (1276) shadow: shadow_base_str              ->           $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc␛[0m
␛[0;32mI (1286) shadow: shadow_get_topic             -> len 53 -> $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/get␛[0m
␛[0;32mI (1296) shadow: shadow_update_topic          -> len 56 -> $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update␛[0m
␛[0;32mI (1306) shadow: shadow_get_accepted_topic    -> len 62 -> $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/get/accepted␛[0m
␛[0;32mI (1326) shadow: shadow_get_rejected_topic    -> len 62 -> $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/get/rejected␛[0m
␛[0;32mI (1336) shadow: shadow_update_accepted_topic -> len 65 -> $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/accepted␛[0m
␛[0;32mI (1346) shadow: shadow_update_rejected_topic -> len 65 -> $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/rejected␛[0m
␛[0;32mI (1356) shadow: shadow_delta_topic    -> len 62 -> $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/delta␛[0m
␛[0;32mI (1366) shadow: Sending subscribe request to agent for topic filter: $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/accepted with id 1␛[0m
␛[0;32mI (1386) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (6396) main: main loop␛[0m
␛[0;32mI (13396) modem: Initializing esp_modem for the BG96 module...␛[0m
␛[0;32mI (13396) uart: queue free spaces: 30␛[0m
␛[0;32mI (13406) modem: Poor signal ...will check after 5s␛[0m
␛[0;32mI (16396) main: main loop␛[0m
␛[0;32mI (18446) modem: 
start_network() waiting for 30 seconds
␛[0m
␛[0;32mI (26396) main: main loop␛[0m
␛[0;32mI (33156) core_mqtt_agent_manager: WiFi connected.␛[0m
␛[0;32mI (33156) modem: Modem Connect to PPP Server␛[0m
␛[0;32mI (33156) esp-netif_lwip-ppp: Connected␛[0m
␛[0;32mI (33156) modem: ~~~~~~~~~~~~~~␛[0m
␛[0;32mI (33166) modem: IP          : 100.80.164.59␛[0m
␛[0;32mI (33176) modem: Netmask     : 255.255.255.255␛[0m
␛[0;32mI (33176) modem: Gateway     : 10.64.64.64␛[0m
␛[0;32mI (33186) modem: Name Server1: 8.8.8.8␛[0m
␛[0;32mI (33186) modem: Name Server2: 8.8.4.4␛[0m
␛[0;32mI (33196) modem: ~~~~~~~~~~~~~~␛[0m
␛[0;32mI (33196) modem: GOT ip event!!!␛[0m
␛[0;31mE (33196) modem: Modem got connected␛[0m
␛[0;32mI (33196) modem: PPP state changed event 0␛[0m
␛[0;32mI (36396) main: main loop␛[0m
␛[0;32mI (45386) coreMQTT: MQTT connection established with the broker.␛[0m
␛[0;32mI (45386) core_mqtt_agent_manager: Session present: 0
␛[0m
␛[0;32mI (45386) ocular_ota: coreMQTT-Agent connected. Resuming OTA agent.␛[0m
␛[0;32mI (45386) device_topic: coreMQTT-Agent connected.␛[0m
␛[0;32mI (45396) shadow: coreMQTT-Agent connected.␛[0m
␛[0;32mI (45396) device_topic: Sending publish request to agent with message "{"temperatureSensor":{ "taskName": "device_top_task", "temperatureValue": 1.230000, "iteration": 0}" on topic "7cdfa1e7c6cc"␛[0m
␛[0;32mI (45396) core_mqtt_agent_manager: coreMQTT-Agent connected.␛[0m
␛[0;32mI (45416) device_topic: Task device_top_task waiting for publish 0 to complete.␛[0m
␛[0;32mI (46396) main: main loop␛[0m
␛[0;32mI (46416) shadow: Received subscribe ack for topic $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/accepted containing ID 1␛[0m
␛[0;32mI (46426) shadow: Sending subscribe request to agent for topic filter: $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/rejected with id 2␛[0m
␛[0;32mI (56396) main: main loop␛[0m
␛[0;32mI (57086) coreMQTT: Publishing message to 7cdfa1e7c6cc.
␛[0m
␛[0;32mI (57736) ocular_ota: Subscribed to topic $aws/things/7cdfa1e7c6cc/jobs/notify-next.

␛[0m
␛[0;32mI (57736) AWS_OTA: Subscribed to MQTT topic: $aws/things/7cdfa1e7c6cc/jobs/notify-next␛[0m
␛[0;32mI (58266) coreMQTT: Ack packet deserialized with result: MQTTSuccess.␛[0m
␛[0;32mI (58266) coreMQTT: State record updated. New state=MQTTPublishDone.␛[0m
␛[0;32mI (58266) device_topic: Rx'ed ack for QoS1 publish from Tx to 7cdfa1e7c6cc (P1:F0).␛[0m
␛[0;32mI (66396) main: main loop␛[0m
␛[0;32mI (68896) coreMQTT: Publishing message to $aws/things/7cdfa1e7c6cc/jobs/$next/get.
␛[0m
␛[0;32mI (69416) shadow: Received subscribe ack for topic $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/rejected containing ID 2␛[0m
␛[0;32mI (69426) shadow: Sending subscribe request to agent for topic filter: $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/delta with id 3␛[0m
␛[0;32mI (69936) coreMQTT: Ack packet deserialized with result: MQTTSuccess.␛[0m
␛[0;32mI (69936) coreMQTT: State record updated. New state=MQTTPublishDone.␛[0m
␛[0;32mI (69946) ocular_ota: Sent PUBLISH packet to broker $aws/things/7cdfa1e7c6cc/jobs/$next/get to broker.

␛[0m
␛[0;32mI (69956) AWS_OTA: Current State=[WaitingForJob], Event=[RequestTimer], New state=[WaitingForJob]␛[0m
␛[0;32mI (69996) coreMQTT: De-serialized incoming PUBLISH packet: DeserializerResult=MQTTSuccess.␛[0m
␛[0;32mI (69996) coreMQTT: State record updated. New state=MQTTPublishDone.␛[0m
␛[0;32mI (69996) ocular_ota: Received job message callback, size 54.

␛[0m
␛[0;32mI (70006) AWS_OTA: No active job available in received job document: OtaJobParseErr_t=OtaJobParseErrNoActiveJobs␛[0m
␛[0;32mI (70016) ocular_ota: Received OtaJobEventNoActiveJob callback from OTA Agent.␛[0m
␛[0;32mI (70026) AWS_OTA: otaPal_GetPlatformImageState␛[0m
␛[0;32mI (70026) esp_ota_ops: aws_esp_ota_get_boot_flags: 1␛[0m
␛[0;32mI (70036) esp_ota_ops: [0] aflags/seq:0x2/0x1, pflags/seq:0xffffffff/0x0␛[0m
␛[0;32mI (70046) ocular_ota: OTA Event processing completed. Freeing the event buffer to pool.␛[0m
␛[0;32mI (70056) AWS_OTA: Current State=[WaitingForJob], Event=[ReceivedJobDocument], New state=[CreatingFile]␛[0m
␛[0;32mI (76396) main: main loop␛[0m
␛[0;32mI (80306) device_topic: Sending publish request to agent with message "{"temperatureSensor":{ "taskName": "device_top_task", "temperatureValue": 1.230000, "iteration": 1}" on topic "7cdfa1e7c6cc"␛[0m
␛[0;32mI (80306) device_topic: Task device_top_task waiting for publish 1 to complete.␛[0m
␛[0;32mI (80646) coreMQTT: Publishing message to 7cdfa1e7c6cc.
␛[0m
␛[0;32mI (81176) shadow: Received subscribe ack for topic $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/delta containing ID 3␛[0m
␛[0;32mI (81176) shadow: Received an event group bit to send shadow update␛[0m
␛[0;32mI (81186) shadow: printed 896 characters to json␛[0m
␛[0;32mI (81186) shadow: {"state":{"reported":{"schema_version":1.200000,"test_number":0.000000,"test_string":"march","test_bool":true,"enable_fan_1":false,"enable_fan_2":false,"enable_fan_3":false,"enable_fan_4":false,"enable_fan_5":false,"enable_fan_6":false,"enable_fan_7":false,"enable_fan_8":false,"enable_fan_9":false,"enable_fan_10":true,"enable_fan_11":false,"enable_fan_12":false,"inside_array_lower_humid_alarm_setpoint":99.000000,"inside_array_lower_temp_alarm_setpoint":149.000000,"inside_array_noise_alarm_setpoint":50.000000,"inside_array_upper_humid_alarm_setpoint":90.000000,"inside_array_upper_temp_alarm_setpoint":150.000000,"outside_array_humid_alarm_setpoint":90.000000,"outside_array_temp_alarm_setpoint":120.000000,"outside_panel_noise_alarm_setpoint":50.000000,"outside_panel_temp_alarm_setpoint":120.000000,"manual_speed_setpoint":500.000000,"auto_temp_setpoint":120.000000,"system_mode":"auto"}}}␛[0m
␛[0;32mI (81266) shadow: Task shadow_task waiting for publish 0 to complete.␛[0m
␛[0;32mI (81736) coreMQTT: Ack packet deserialized with result: MQTTSuccess.␛[0m
␛[0;32mI (81736) coreMQTT: State record updated. New state=MQTTPublishDone.␛[0m
␛[0;32mI (81746) device_topic: Rx'ed ack for QoS1 publish from Tx to 7cdfa1e7c6cc (P2:F0).␛[0m
␛[0;32mI (86396) main: main loop␛[0m
␛[0;32mI (91746) coreMQTT: Publishing message to $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update.
␛[0m
␛[0;32mI (93496) coreMQTT: Ack packet deserialized with result: MQTTSuccess.␛[0m
␛[0;32mI (93496) coreMQTT: State record updated. New state=MQTTPublishDone.␛[0m
␛[0;32mI (93496) shadow: Rx'ed ack for QoS1 publish from Tx to $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update (P1:F0).␛[0m
␛[0;32mI (94296) coreMQTT: De-serialized incoming PUBLISH packet: DeserializerResult=MQTTSuccess.␛[0m
␛[0;32mI (94296) coreMQTT: State record updated. New state=MQTTPubAckSend.␛[0m
␛[0;32mI (94306) coreMQTT: Incoming Publish Topic Name: $aws/things/7cdfa1e7c6cc/shadow/name/7cdfa1e7c6cc/update/accepted matches subscribed topic.
Incoming Publish Message : {"state":{"reported":{"schema_version":1.2,"test_number":0.0,"test_string":"march","test_bool":true,"enable_fan_1":false,"enable_fan_2":false,"enable_fan_3":false,"enable_fan_4":false,"enable_fan_5":false,"enable_fan_6":false,"enable_fan_7":false,"enable_fan_8":false,"enable_fan_9":false,"enable_fan_10":true,"enable_fan_11":false,"enable_fan_12":false,"inside_array_lower_humid_alarm_setpoint":99.0,"inside_array_lower_temp_alarm_setpoint":149.0,"inside_array_noise_alarm_setpoint":50.0,"inside_array_upper_humid_alarm_setpoint":90.0,"inside_array_upper_temp_alarm_setpoint":150.0,"outside_array_humid_alarm_setpoint":90.0,"outside_array_temp_alarm_setpoint":120.0,"outside_panel_noise_alarm_setpoint":50.0,"outside_panel_temp_alarm_setpoint":120.0,"manual_speed_setpoint":500.0,"auto_temp_setpoint":120.0,"system_mode":"auto"}},"metadata":{"reported":{"schema_version":{"timestamp":1701889720},"test_number":{"timestamp":1701889720},"test_string":{"timestamp":1701889720},"test_bool":{"timestamp":1701889720},"enable_fan_1":{"timestamp":1701889720},"enable_fan_2":{"timestamp":1701889720},"enable_fan_3":{"timestamp":1701889720},"enable_fan_4":{"timestamp":1701889720},"enable_fan_5":{"timestamp":1701889720},"enable_fan_6":{"timestamp":1701889720},"enable_fan_7":{"timestamp":1701889720},"enable_fan_8":{"timestamp":1701889720},"enable_fan_9":{"timestamp":1701889720},"enable_fan_10":{"timestamp":1701889720},"enable_fan_11":{"timestamp":1701889720},"enable_fan_12":{"timestamp":1701889720},"inside_array_lower_humid_alarm_setpoint":{"timestamp":1701889720},"inside_array_lower_temp_alarm_setpoint":{"timestamp":1701889720},"inside_array_noise_alarm_setpoint":{"timestamp":1701889720},"inside_array_upper_humid_alarm_setpoint":{"timestamp":1701889720},"inside_array_upper_temp_alarm_setpoint":{"timestamp":1701889720},"outside_array_humid_alarm_setpoint":{"timestamp":1701889720},"outside_array_temp_alarm_setpoint":{"timestamp":1701889720},"outside_panel_noise_alarm_setpoint":{"timestamp":1701889720},"outside_panel_temp_alarm_setpoint":{"timestamp":1701889720},"manual_speed_setpoint":{"timestamp":1701889720},"auto_temp_setpoint":{"timestamp":1701889720},"system_mode":{"timestamp":1701889720}}},"version":196,"timestamp":1701889720}.

␛[0m
␛[0;32mI (96396) main: main loop␛[0m
␛[0;32mI (102526) device_topic: Sending publish request to agent with message "{"temperatureSensor":{ "taskName": "device_top_task", "temperatureValue": 1.230000, "iteration": 2}" on topic "7cdfa1e7c6cc"␛[0m
␛[0;32mI (102526) device_topic: Task device_top_task waiting for publish 2 to complete.␛[0m
␛[0;32mI (104516) coreMQTT: Publishing message to 7cdfa1e7c6cc.
␛[0m
␛[0;32mI (106146) coreMQTT: Ack packet deserialized with result: MQTTSuccess.␛[0m
␛[0;32mI (106146) coreMQTT: State record updated. New state=MQTTPublishDone.␛[0m
␛[0;32mI (106146) device_topic: Rx'ed ack for QoS1 publish from Tx to 7cdfa1e7c6cc (P3:F0).␛[0m
␛[0;32mI (106396) main: main loop␛[0m
␛[0;32mI (116396) main: main loop␛[0m
␛[0;32mI (126396) main: main loop␛[0m
␛[0;32mI (126776) device_topic: Sending publish request to agent with message "{"temperatureSensor":{ "taskName": "device_top_task", "temperatureValue": 1.230000, "iteration": 3}" on topic "7cdfa1e7c6cc"␛[0m
␛[0;32mI (126776) device_topic: Task device_top_task waiting for publish 3 to complete.␛[0m
␛[0;32mI (128146) coreMQTT: Publishing message to 7cdfa1e7c6cc.

here is where the code is at now

#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h"
#include "esp_netif.h"
#include "esp_netif_ppp.h"
#include "esp_modem_api.h"
#include "esp_log.h"
#include "sdkconfig.h"
#include "mqtt_client.h"
#include "driver/gpio.h"
#include "esp_mac.h"

#include "modem_config.h"

static const char* TAG = "modem";

static EventGroupHandle_t event_group = NULL;
static const int CONNECT_BIT = BIT0;
static const int DISCONNECT_BIT = BIT2;

static esp_modem_dce_t *dce;
static esp_netif_t *esp_netif;

static void pwk_gpio_init(void){
    gpio_config_t io_conf = {};
    io_conf.intr_type = GPIO_INTR_DISABLE;
    io_conf.mode = GPIO_MODE_OUTPUT;
    io_conf.pin_bit_mask = ( 1ULL << BG96_PWR_PIN );
    io_conf.pull_down_en = 0;
    io_conf.pull_up_en = 0;
    gpio_config(&io_conf);
    gpio_set_level(BG96_PWR_PIN, 0);
}

static void bg96_set_pwr(bool on){
    gpio_set_level(BG96_PWR_PIN, on);
}

static bool modem_start_network()
{
    return esp_modem_set_mode(dce, ESP_MODEM_MODE_DATA) == ESP_OK;
}

static bool modem_stop_network()
{
    return esp_modem_set_mode(dce, ESP_MODEM_MODE_COMMAND);
}

static bool modem_check_sync()
{
    return esp_modem_sync(dce) == ESP_OK;
}

static void modem_reset()
{
    esp_modem_reset(dce);
}

static bool modem_check_signal()
{
    int rssi, ber;
    if (esp_modem_get_signal_quality(dce, &rssi, &ber) == ESP_OK) {
        return rssi != 99 && rssi > 5;
    }
    return false;
}

static void on_ppp_changed(void *arg, esp_event_base_t event_base, int32_t event_id, void *event_data)
{
    ESP_LOGI(TAG, "PPP state changed event %" PRIu32, event_id);
    if (event_id == NETIF_PPP_ERRORUSER) {
        /* User interrupted event from esp-netif */
        esp_netif_t *netif = event_data;
        ESP_LOGI(TAG, "User interrupted event from netif:%p", netif);
    }
}

static void on_ip_event(void *arg, esp_event_base_t event_base, int32_t event_id, void *event_data)
{
    ESP_LOGD(TAG, "IP event! %" PRIu32, event_id);
    if (event_id == IP_EVENT_PPP_GOT_IP) {
        esp_netif_dns_info_t dns_info;

        ip_event_got_ip_t *event = (ip_event_got_ip_t *)event_data;
        esp_netif_t *netif = event->esp_netif;

        ESP_LOGI(TAG, "Modem Connect to PPP Server");
        ESP_LOGI(TAG, "~~~~~~~~~~~~~~");
        ESP_LOGI(TAG, "IP          : " IPSTR, IP2STR(&event->ip_info.ip));
        ESP_LOGI(TAG, "Netmask     : " IPSTR, IP2STR(&event->ip_info.netmask));
        ESP_LOGI(TAG, "Gateway     : " IPSTR, IP2STR(&event->ip_info.gw));
        esp_netif_get_dns_info(netif, 0, &dns_info);
        ESP_LOGI(TAG, "Name Server1: " IPSTR, IP2STR(&dns_info.ip.u_addr.ip4));
        esp_netif_get_dns_info(netif, 1, &dns_info);
        ESP_LOGI(TAG, "Name Server2: " IPSTR, IP2STR(&dns_info.ip.u_addr.ip4));
        ESP_LOGI(TAG, "~~~~~~~~~~~~~~");
        xEventGroupSetBits(event_group, CONNECT_BIT);

        ESP_LOGI(TAG, "GOT ip event!!!");
    } else if (event_id == IP_EVENT_PPP_LOST_IP) {
        ESP_LOGI(TAG, "Modem Disconnect from PPP Server");
        xEventGroupSetBits(event_group, DISCONNECT_BIT);
    } else if (event_id == IP_EVENT_GOT_IP6) {
        ESP_LOGI(TAG, "GOT IPv6 event!");

        ip_event_got_ip6_t *event = (ip_event_got_ip6_t *)event_data;
        ESP_LOGI(TAG, "Got IPv6 address " IPV6STR, IPV62STR(event->ip6_info.ip));
    }
}

static void start_network(void)
{
    // EventBits_t bits = 0;
    while ((xEventGroupGetBits(event_group) & CONNECT_BIT) == 0) {
        if (!modem_check_sync()) {
            ESP_LOGE(TAG, "Modem does not respond, maybe in DATA mode? ...exiting network mode");
            modem_stop_network();
            if (!modem_check_sync()) {
                ESP_LOGE(TAG, "Modem does not respond to AT ...restarting");
                modem_reset();
                ESP_LOGI(TAG, "Restarted");
            }
            int ret = esp_modem_at(dce, "ATH", NULL, 2000);
            ESP_LOGI(TAG, "hangup %s", ret == ESP_OK ? "Success" : "Failure");
            continue;
        }
        if (!modem_check_signal()) {
            ESP_LOGI(TAG, "Poor signal ...will check after 5s");
            vTaskDelay(pdMS_TO_TICKS(5000));
            continue;
        }
        if (!modem_start_network()) {
            ESP_LOGE(TAG, "Modem could not enter network mode ...will retry after 10s");
            vTaskDelay(pdMS_TO_TICKS(10000));
            continue;
        }
        ESP_LOGI(TAG, "\nstart_network() waiting for 30 seconds\n");
        EventBits_t bits = xEventGroupWaitBits(event_group, (DISCONNECT_BIT | CONNECT_BIT), pdTRUE, pdFALSE, pdMS_TO_TICKS(30000));
        if (bits & DISCONNECT_BIT) {
            ESP_LOGE(TAG, "Modem got disconnected ...retrying");
            modem_stop_network();
        } else if(bits & CONNECT_BIT){
            ESP_LOGE(TAG, "Modem got connected");
            break;
        } else {
            ESP_LOGI(TAG, "\nstart_network() wait timed out\n");
        }
    }
}

static void modem_task( void *args ){
    pwk_gpio_init();

    // cycle pwk pin
    bg96_set_pwr(true);
    vTaskDelay(pdMS_TO_TICKS(1000));
    bg96_set_pwr(false);
    vTaskDelay(pdMS_TO_TICKS(1000));
    bg96_set_pwr(true);
    vTaskDelay(pdMS_TO_TICKS(10000)); // wait for boot

    /* Init and register system/core components */
    ESP_ERROR_CHECK(esp_netif_init());
    // ESP_ERROR_CHECK(esp_event_loop_create_default());
    ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, ESP_EVENT_ANY_ID, &on_ip_event, NULL));
    ESP_ERROR_CHECK(esp_event_handler_register(NETIF_PPP_STATUS, ESP_EVENT_ANY_ID, &on_ppp_changed, NULL));

    /* Configure the PPP netif */
    esp_modem_dce_config_t dce_config = ESP_MODEM_DCE_DEFAULT_CONFIG(CONFIG_EXAMPLE_MODEM_PPP_APN);
    esp_netif_config_t netif_ppp_config = ESP_NETIF_DEFAULT_PPP();
    esp_netif = esp_netif_new(&netif_ppp_config);
    assert(esp_netif);

    event_group = xEventGroupCreate();

    /* setup UART specific configuration based on kconfig options */
    esp_modem_dte_config_t dte_config = ESP_MODEM_DTE_DEFAULT_CONFIG();
    dte_config.uart_config.tx_io_num = CONFIG_EXAMPLE_MODEM_UART_TX_PIN;
    dte_config.uart_config.rx_io_num = CONFIG_EXAMPLE_MODEM_UART_RX_PIN;
    dte_config.uart_config.rts_io_num = CONFIG_EXAMPLE_MODEM_UART_RTS_PIN;
    dte_config.uart_config.cts_io_num = CONFIG_EXAMPLE_MODEM_UART_CTS_PIN;
    dte_config.uart_config.flow_control = CONFIG_EXAMPLE_FLOW_CONTROL;
    dte_config.uart_config.rx_buffer_size = CONFIG_EXAMPLE_MODEM_UART_RX_BUFFER_SIZE;
    dte_config.uart_config.tx_buffer_size = CONFIG_EXAMPLE_MODEM_UART_TX_BUFFER_SIZE;
    dte_config.uart_config.event_queue_size = CONFIG_EXAMPLE_MODEM_UART_EVENT_QUEUE_SIZE;
    dte_config.task_stack_size = CONFIG_EXAMPLE_MODEM_UART_EVENT_TASK_STACK_SIZE;
    dte_config.task_priority = CONFIG_EXAMPLE_MODEM_UART_EVENT_TASK_PRIORITY;
    dte_config.dte_buffer_size = CONFIG_EXAMPLE_MODEM_UART_RX_BUFFER_SIZE / 2;

    ESP_LOGI(TAG, "Initializing esp_modem for the BG96 module...");
    dce = esp_modem_new_dev(ESP_MODEM_DCE_BG96, &dte_config, &dce_config, esp_netif);
    assert(dce);

    xEventGroupClearBits(event_group, CONNECT_BIT | DISCONNECT_BIT );

    // Start the PPP network and wait for connection
    start_network();

    while(1){
        EventBits_t bits = xEventGroupWaitBits(event_group, DISCONNECT_BIT, pdTRUE, pdFALSE, portMAX_DELAY);
        ESP_LOGI(TAG, "\nDaemon received DISCONNECT_BIT, cycling modem\n");
        if (bits & DISCONNECT_BIT) {
            modem_stop_network();
            start_network();
        }
    }
    ESP_LOGE(TAG, "modem task exited!");
    vTaskDelete(NULL);
}

void modem_deinit(void){
    esp_modem_destroy(dce);
    esp_netif_destroy(esp_netif);
}

void modem_init( void ){
    xTaskCreate(modem_task, "modem_task", 4096, NULL, 4, NULL);
}

@david-cermak
Copy link
Collaborator

Interesting that I don't see this message in your log anymore:

esp-netif_lwip-ppp: esp_netif_start_ppp: PPP connection cannot be started

(That's why I asked if the set_mode(...) command succeeded or not, as it seemed like in it did not from the previous log, but it does in the recent log)

And by pressing reset, you reset only the ESP32, not the modem? Would it help if you destroy the dce and the esp_netif and create it again?

I'm sorry I cannot see what's wrong. I think I would have to try to simulate this issue and look into it.
Could you please also check if there's a difference in the output of this command:

 AT+CGREG 

when you disable or re-enable your SIM card?

@marchingband
Copy link
Author

marchingband commented Dec 9, 2023

@david-cermak thank you.

Interesting that I don't see this message in your log anymore:

The first log was captured from a very different process, which I had created before discovering the ap_to_pppos example, and following that reconnect procedure.

And by pressing reset, you reset only the ESP32, not the modem?

correct, I just press reset on the ESP32. The initialization process does then toggle the PWK pin, which I believe triggers a reset in the modem. It looks like this:

    pwk_gpio_init();

    // cycle pwk pin
    bg96_set_pwr(true);
    vTaskDelay(pdMS_TO_TICKS(1000));
    bg96_set_pwr(false);
    vTaskDelay(pdMS_TO_TICKS(1000));
    bg96_set_pwr(true);
    vTaskDelay(pdMS_TO_TICKS(10000)); // wait for boot

Would it help if you destroy the dce and the esp_netif and create it again?

I have not yet tried this. If you would like me to test that approach I can give it a shot.

Could you please also check if there's a difference in the output of this command:
AT+CGREG
when you disable or re-enable your SIM card?

I ran this test, and the function always returns 0 (ESP_OK):
When the modem is starting up it prints +CGREG: 0,4, once it has started connecting I get +CGREG: 0,2, then i get my IP.
Then when I turn off the SIM, I again get +CGREG: 0,4 for a while.
Then I get +CGREG: 0,2 and +CGREG: 0,3 and +CGREG: 0,4 more or less at random, but never regain IP.

I think I would have to try to simulate this issue and look into it.

Thanks so much for your attention on this, I am happy to run whatever test that might help, should you decide to test this yourself.

@marchingband
Copy link
Author

I upped the timeout to 90 seconds, and the reconnection routine succeeded.
Again thanks so much for your support. Running the CGREG command queued me to realize it was making progress in the connection, and I was resetting it too soon.
30 seconds seems like an eternity ... so I am not sure what is up there.
Feel free to close the issue, or let me know if there is more I can do.

@david-cermak
Copy link
Collaborator

Closing as I don't have any better opinion.
My interpretation is that when your SIM card gets deactivated it simply takes more time to reflect on PPP layers than normal disconnections. If you'd like to investigate this further I'd suggest enabling PPP phase notifications to see if you there's anything indicating network status terminated and retrying (those retries would IMO prolong the reconnection phase).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants