ruuvi / ruuvi.gateway_esp.c

Ruuvi Gateway ESP32 code
BSD 3-Clause "New" or "Revised" License
25 stars 15 forks source link

Gateway reboots by assert when Ethernet cable is connected during configuration #899

Open TheSomeMan opened 1 year ago

TheSomeMan commented 1 year ago
assertion "netif already added" failed: file "IDF/components/lwip/lwip/src/core/netif.c", line 405, function: netif_add
I (19460) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 10.10.0.2
I (19461) wifi_manager: [sys_evt/20] IP_EVENT_AP_STAIPASSIGNED
I (19464) wifi_manager: [wifi_manager/5] MESSAGE: EVENT_AP_STA_IP_ASSIGNED
I (19471) wifi_manager: [wifi_manager/5] WIFI_MANAGER:EV_STATE: Set WIFI_MANAGER_AP_STA_IP_ASSIGNED_BIT
I (19482) network: [wifi_manager/5] callback: on_ap_sta_ip_assigned
I (19488) ruuvi_gateway: [wifi_manager/5] ### Start timer for deactivation of configuration mode after timeout (60 seconds)
I (19501) ETH: [sys_evt/20] ### Ethernet Link Down
I (19506) network: [sys_evt/20] Ethernet lost connection
I (19512) wifi_manager: [sys_evt/20] Set STA IP String to: 0.0.0.0
I (19519) wifi_manager: [sys_evt/20] WIFI_MANAGER:EV_STATE: Clear WIFI_MANAGER_WIFI_CONNECTED_BIT | WIFI_MANAGER_ETH_CONNECTED_BIT
I (19534) ADV_POST_TASK: [adv_post_task/5] Handle event: NETWORK_DISCONNECTED
I (19539) TIME: [time_task/1] ### Deactivate SNTP time synchronization
I (19720) MQTT: [main/1] MQTT destroyed
I (19721) MQTT: [main/1] TaskWatchdog: Register current thread
I (19721) gw_status: [main/1] MQTT stopped
I (19726) MQTT: [main/1] Free memory, allocated for certificates
I (19732) gw_status: [main/1] Clear GW_STATUS_MQTT_RELAYING_CMD_BIT
I (19739) ruuvi_gateway: [main/1] ### Handle event: NETWORK_DISCONNECTED
I (19746) ruuvi_gateway: [main/1] ### Stop mDNS
I (19753) runtime_stat: [main/1] ======== totalTime 11978794 ==============================================================
I (19763) runtime_stat: [main/1] |  #  |    Task name     | Pri | Stat|    cnt    |  %  |        Stack       | Stack free |
I (19776) runtime_stat: [main/1] |-----|------------------|-----|-----|-----------|-----|--------------------|------------|
I (19788) runtime_stat: [main/1] |   3 | IDLE0            |   0 | Rdy |   9992596 | 83% |  732 of  1532 (47%)|      800   |
I (19799) runtime_stat: [main/1] |   2 | main             |   1 | Rdy |    260362 |  2% | 2988 of  3964 (75%)|      976   |
I (19810) runtime_stat: [main/1] |   6 | reset_task       |   1 | Sus |      1457 | <1% | 2240 of  2812 (79%)|      572   |
I (19822) runtime_stat: [main/1] |   9 | time_task        |   1 | Sus |     12493 | <1% | 2080 of  3068 (67%)|      988   |
I (19834) runtime_stat: [main/1] |  12 | http_server      |   1 | Blk |     32587 | <1% | 2004 of  7676 (26%)|     5672   |
I (19846) runtime_stat: [main/1] |  17 | dns_server       |   4 | Blk |    113450 |  1% | 2024 of  3068 (65%)|     1044   |
I (19858) runtime_stat: [main/1] |   7 | adv_post_task    |   5 | Sus |    100659 |  1% | 2212 of  6140 (36%)|     3928   |
I (19869) runtime_stat: [main/1] |  14 | wifi_manager     |   5 | Blk |    179986 |  2% | 2392 of  4092 (58%)|     1700   |
I (19881) runtime_stat: [main/1] |  16 | mqtt_task        |   5 | Del |     86653 |  1% | 2240 of  6140 (36%)|     3900   |
I (19894) runtime_stat: [main/1] |   5 | leds_task        |   6 | Sus |     57231 | <1% | 2092 of  3068 (68%)|      976   |
I (19905) runtime_stat: [main/1] |   8 | uart_rx_task     |   7 | Blk |    662906 |  6% | 2312 of  4092 (56%)|     1780   |
I (19917) runtime_stat: [main/1] |  15 | emac_rx          |  15 | Sus |         0 |  0% |  632 of  3068 (20%)|     2436   |
I (19929) runtime_stat: [main/1] |  11 | tiT              |  18 | Blk |    108921 |  1% | 2240 of  3836 (58%)|     1596   |
I (19940) runtime_stat: [main/1] |  10 | sys_evt          |  20 | Blk |     72576 |  1% | 2348 of  2812 (83%)|      464   |
I (19952) runtime_stat: [main/1] |   1 | esp_timer        |  22 | Blk |     19172 | <1% |  892 of  2556 (34%)|     1664   |
I (19964) runtime_stat: [main/1] |  13 | wifi             |  23 | Blk |    218519 |  2% | 2452 of  6652 (36%)|     4200   |
I (19976) runtime_stat: [main/1] |   4 | Tmr Svc          |  24 | Blk |     56721 | <1% |  940 of  3068 (30%)|     2128   |
I (19988) runtime_stat: [main/1] ==========================================================================================
I (20075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=91
I (20459) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 10.10.0.2
I (20460) wifi_manager: [sys_evt/20] IP_EVENT_AP_STAIPASSIGNED
I (20464) wifi_manager: [wifi_manager/5] MESSAGE: EVENT_AP_STA_IP_ASSIGNED
I (20471) wifi_manager: [wifi_manager/5] WIFI_MANAGER:EV_STATE: Set WIFI_MANAGER_AP_STA_IP_ASSIGNED_BIT
I (20481) network: [wifi_manager/5] callback: on_ap_sta_ip_assigned
I (20488) ruuvi_gateway: [wifi_manager/5] ### Start timer for deactivation of configuration mode after timeout (60 seconds)
I (21075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=87
I (22075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=87
I (22277) dns_server: [dns_server/4] Replying to DNS request for gateway.icloud.com from 10.10.0.2
I (22281) dns_server: [dns_server/4] Replying to DNS request for _dns.resolver.arpa from 10.10.0.2
I (22718) dns_server: [dns_server/4] Replying to DNS request for mtalk.google.com from 10.10.0.2
I (23054) ADV_POST_TASK: [adv_post_task/5] Got ADV_POST_SIG_RETRANSMIT2
I (23075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=89
I (24075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=89
I (24477) dns_server: [dns_server/4] Replying to DNS request for epdg.epc.mnc001.mcc250.pub.3gppnetwork.org from 10.10.0.2
I (24483) dns_server: [dns_server/4] Replying to DNS request for _dns.resolver.arpa from 10.10.0.2
I (25075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=86
I (25114) dns_server: [dns_server/4] Replying to DNS request for captive.apple.com from 10.10.0.2
I (25118) dns_server: [dns_server/4] Replying to DNS request for captive.apple.com from 10.10.0.2
I (25674) dns_server: [dns_server/4] Replying to DNS request for content-autofill.googleapis.com from 10.10.0.2
I (26026) dns_server: [dns_server/4] Replying to DNS request for clientstream.launchdarkly.com from 10.10.0.2
I (26030) dns_server: [dns_server/4] Replying to DNS request for clientstream.launchdarkly.com from 10.10.0.2
I (26050) dns_server: [dns_server/4] Replying to DNS request for mobile.launchdarkly.com from 10.10.0.2
I (26066) dns_server: [dns_server/4] Replying to DNS request for mobile.launchdarkly.com from 10.10.0.2
I (26075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=90
I (27075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=85
I (28075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=90
I (29075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=81
I (29670) ruuvi_gateway: [main/1] free heap: 122328
I (30075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=84
I (31075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=92
I (32075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=97
I (33075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=89
I (33796) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): GET /
I (33802) http_server: [http_server/1] Response: OK
I (33868) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): GET /bundle.js
I (33874) http_server: [http_server/1] Response: OK
I (34075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=91
I (35075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=81
I (36075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=78
I (37046) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): GET /auth
I (37047) http_server: [http_server/1] Found Ruuvi-Ecdh-Pub-Key: BJK4g81FPj+OXsdI+QTCOqqwYER/EI4Ht+mchrcWhzcBajnuVTpGBdDuz5h4rmVTSPbi585fKUE5BVttzIQ5/XA=
I (37060) ECDH: [http_server/1] pub_key_b64_cli: BJK4g81FPj+OXsdI+QTCOqqwYER/EI4Ht+mchrcWhzcBajnuVTpGBdDuz5h4rmVTSPbi585fKUE5BVttzIQ5/XA=
I (37075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=85
I (37547) ECDH: [http_server/1] pub_key_b64_srv: BOM083M+mVoSCC78RHLm2sFtLSYLZRbgQfeGIru1mNWDuweLODGt2djAEJwnMzOLBjqFu8qZ05+DQiby1MCdbwQ=
I (37671) runtime_stat: [main/1] ======== totalTime 17918062 ==============================================================
I (37675) runtime_stat: [main/1] |  #  |    Task name     | Pri | Stat|    cnt    |  %  |        Stack       | Stack free |
I (37688) runtime_stat: [main/1] |-----|------------------|-----|-----|-----------|-----|--------------------|------------|
I (37698) runtime_stat: [main/1] |   3 | IDLE0            |   0 | Rdy |  14400351 | 80% |  732 of  1532 (47%)|      800   |
I (37710) runtime_stat: [main/1] |   2 | main             |   1 | Rdy |    247019 |  1% | 2988 of  3964 (75%)|      976   |
I (37722) runtime_stat: [main/1] |   6 | reset_task       |   1 | Sus |      2128 | <1% | 2240 of  2812 (79%)|      572   |
I (37734) runtime_stat: [main/1] |   9 | time_task        |   1 | Sus |         0 |  0% | 2080 of  3068 (67%)|      988   |
I (37745) runtime_stat: [main/1] |  12 | http_server      |   1 | Rdy |    780816 |  4% | 3204 of  7676 (41%)|     4472   |
I (37757) runtime_stat: [main/1] |  17 | dns_server       |   4 | Blk |     42693 | <1% | 2024 of  3068 (65%)|     1044   |
I (37769) runtime_stat: [main/1] |   7 | adv_post_task    |   5 | Sus |    155592 |  1% | 2212 of  6140 (36%)|     3928   |
I (37782) runtime_stat: [main/1] |  14 | wifi_manager     |   5 | Blk |     30785 | <1% | 2392 of  4092 (58%)|     1700   |
I (37794) runtime_stat: [main/1] |   5 | leds_task        |   6 | Sus |     87901 | <1% | 2092 of  3068 (68%)|      976   |
I (37805) runtime_stat: [main/1] |   8 | uart_rx_task     |   7 | Blk |   1034346 |  6% | 2312 of  4092 (56%)|     1780   |
I (37817) runtime_stat: [main/1] |  15 | emac_rx          |  15 | Sus |         0 |  0% |  632 of  3068 (20%)|     2436   |
I (37828) runtime_stat: [main/1] |  11 | tiT              |  18 | Blk |    497540 |  3% | 2240 of  3836 (58%)|     1596   |
I (37840) runtime_stat: [main/1] |  10 | sys_evt          |  20 | Blk |      3170 | <1% | 2348 of  2812 (83%)|      464   |
I (37853) runtime_stat: [main/1] |   1 | esp_timer        |  22 | Blk |     29360 | <1% |  924 of  2556 (36%)|     1632   |
I (37864) runtime_stat: [main/1] |  13 | wifi             |  23 | Blk |    524177 |  3% | 2452 of  6652 (36%)|     4200   |
I (37875) runtime_stat: [main/1] |   4 | Tmr Svc          |  24 | Blk |     85751 | <1% |  940 of  3068 (30%)|     2128   |
I (37887) runtime_stat: [main/1] ==========================================================================================
I (38075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=96
I (38126) http_server: [http_server/1] Extra HTTP-header resp: Ruuvi-Ecdh-Pub-Key: BOM083M+mVoSCC78RHLm2sFtLSYLZRbgQfeGIru1mNWDuweLODGt2djAEJwnMzOLBjqFu8qZ05+DQiby1MCdbwQ=

I (38132) http_server: [http_server/1] Json resp: code=200, content:
{"gateway_name": "RuuviGateway4FAD", "fw_ver": "v1.14.1-22-gc86f8ba-dirty", "nrf52_fw_ver": "v1.0.5", "lan_auth_type": "lan_auth_allow", "lan": false}
I (38152) http_server: [http_server/1] Response: OK
I (38422) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): GET /ruuvi.json
I (38424) gw_cfg: [http_server/1] Check file 'http_cli_cert' in NVS
I (38429) gw_cfg: [http_server/1] Can't find config key 'http_cli_cert' in flash
I (38437) gw_cfg: [http_server/5] Check file 'http_cli_key' in NVS
I (38444) gw_cfg: [http_server/5] Can't find config key 'http_cli_key' in flash
I (38453) gw_cfg: [http_server/5] Check file 'stat_cli_cert' in NVS
I (38459) gw_cfg: [http_server/5] Can't find config key 'stat_cli_cert' in flash
I (38467) gw_cfg: [http_server/5] Check file 'stat_cli_key' in NVS
I (38474) gw_cfg: [http_server/5] Can't find config key 'stat_cli_key' in flash
I (38482) gw_cfg: [http_server/5] Check file 'mqtt_cli_cert' in NVS
I (38489) gw_cfg: [http_server/5] Can't find config key 'mqtt_cli_cert' in flash
I (38497) gw_cfg: [http_server/5] Check file 'mqtt_cli_key' in NVS
I (38504) gw_cfg: [http_server/5] Can't find config key 'mqtt_cli_key' in flash
I (38512) gw_cfg: [http_server/5] Check file 'rcfg_cli_cert' in NVS
I (38519) gw_cfg: [http_server/5] Can't find config key 'rcfg_cli_cert' in flash
I (38528) gw_cfg: [http_server/5] Check file 'rcfg_cli_key' in NVS
I (38534) gw_cfg: [http_server/5] Can't find config key 'rcfg_cli_key' in flash
I (38541) gw_cfg: [http_server/5] Check file 'http_srv_cert' in NVS
I (38549) gw_cfg: [http_server/5] Can't find config key 'http_srv_cert' in flash
I (38556) gw_cfg: [http_server/5] Check file 'stat_srv_cert' in NVS
I (38564) gw_cfg: [http_server/5] Can't find config key 'stat_srv_cert' in flash
I (38571) gw_cfg: [http_server/5] Check file 'mqtt_srv_cert' in NVS
I (38579) gw_cfg: [http_server/5] Can't find config key 'mqtt_srv_cert' in flash
I (38587) gw_cfg: [http_server/5] Check file 'rcfg_srv_cert' in NVS
I (38594) gw_cfg: [http_server/5] Can't find config key 'rcfg_srv_cert' in flash
I (38608) http_server: [http_server/5] ruuvi.json: {
        "fw_ver":       "v1.14.1-22-gc86f8ba-dirty",
        "nrf52_fw_ver": "v1.0.5",
        "gw_mac":       "F4:D9:16:FE:4F:AD",
        "storage":      {
                "storage_ready":        true,
                "http_cli_cert":        false,
                "http_cli_key": false,
                "stat_cli_cert":        false,
                "stat_cli_key": false,
                "mqtt_cli_cert":        false,
                "mqtt_cli_key": false,
                "rcfg_cli_cert":        false,
                "rcfg_cli_key": false,
                "http_srv_cert":        false,
                "stat_srv_cert":        false,
                "mqtt_srv_cert":        false,
                "rcfg_srv_cert":        false
        },
        "wifi_sta_config":      {
                "ssid": "WIFI786_2.4G"
        },
        "wifi_ap_config":       {
                "channel":      5
        },
        "use_eth":      true,
        "eth_dhcp":     true,
        "eth_static_ip":        "",
        "eth_netmask":  "",
        "eth_gw":       "",
        "eth_dns1":     "",
        "eth_dns2":     "",
        "remote_cfg_use":       false,
        "remote_cfg_url":       "",
        "remote_cfg_auth_type": "none",
        "remote_cfg_use_ssl_client_cert":       false,
        "remote_cfg_use_ssl_server_cert":       false,
        "remote_cfg_refresh_interval_minutes":  0,
        "use_http_ruuvi":       false,
        "use_http":     true,
        "http_use_ssl_client_cert":     false,
        "http_use_ssl_server_cert":     false,
        "http_url":     "http://192.168.1.119:8000",
        "http_period":  30,
        "http_data_format":     "ruuvi_raw_and_decoded",
        "http_auth":    "none",
        "use_http_stat":        false,
        "http_stat_url":        "",
        "http_stat_user":       "",
        "http_stat_use_ssl_client_cert":        false,
        "http_stat_use_ssl_server_cert":        false,
        "use_mqtt":     true,
        "mqtt_disable_retained_messages":       true,
        "mqtt_transport":       "SSL",
        "mqtt_data_format":     "ruuvi_raw_and_decoded",
        "mqtt_server":  "test.mosquitto.org",
        "mqtt_port":    8886,
        "mqtt_sending_interval":        0,
        "mqtt_prefix":  "ruuvi/F4:D9:16:FE:4F:AD/",
        "mqtt_client_id":       "F4:D9:16:FE:4F:AD",
        "mqtt_user":    "",
        "mqtt_use_ssl_client_cert":     false,
        "mqtt_use_ssl_server_cert":     false,
        "lan_auth_type":        "lan_auth_allow",
        "lan_auth_user":        "",
        "lan_auth_api_key_use": false,
        "lan_auth_api_key_rw_use":      false,
        "auto_update_cycle":    "manual",
        "auto_update_weekdays_bitmask": 127,
        "auto_update_interval_from":    0,
        "auto_update_interval_to":      24,
        "auto_update_tz_offset_hours":  3,
        "ntp_use":      true,
        "ntp_use_dhcp": false,
        "ntp_server1":  "time.google.com",
        "ntp_server2":  "time.cloudflare.com",
        "ntp_server3":  "time.nist.gov",
        "ntp_server4":  "pool.ntp.org",
        "company_id":   1177,
        "company_use_filtering":        true,
        "scan_coded_phy":       false,
        "scan_1mbit_phy":       true,
        "scan_extended_payload":        true,
        "scan_channel_37":      true,
        "scan_channel_38":      true,
        "scan_channel_39":      true,
        "scan_filter_allow_listed":     false,
        "scan_filter_list":     [],
        "coordinates":  "",
        "fw_update_url":        "https://network.ruuvi.com/firmwareupdate"
}
I (38832) http_server: [http_server/5] Json resp: code=200, content_len=2504
I (38840) http_server: [http_server/5] Response: OK
I (38849) ruuvi_gateway: [main/1] MAIN_TASK_SIG_ACTIVATE_CFG_MODE
I (38852) ruuvi_gateway: [main/1] Configuration mode is already active
I (39032) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): GET /status.json
I (39034) network: [http_server/1] callback: cb_on_request_status_json
I (39039) ruuvi_gateway: [http_server/1] ### Start timer for deactivation of configuration mode after timeout (60 seconds)
I (39051) http_server: [http_server/1] Json resp: code=200, content:
{"ssid":null,"ip":"0","netmask":"0","gw":"0","dhcp":"","urc":3}

I (39064) http_server: [http_server/1] Response: OK
I (39078) ADV_POST_TASK: [adv_post_task/5] adv_cnt=90
I (40070) ruuvi_gateway: [main/1] free heap: 111624
I (40075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=93
I (40171) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): GET /status.json
I (40175) network: [http_server/1] callback: cb_on_request_status_json
I (40178) ruuvi_gateway: [http_server/1] ### Start timer for deactivation of configuration mode after timeout (60 seconds)
I (40190) http_server: [http_server/1] Json resp: code=200, content:
{"ssid":null,"ip":"0","netmask":"0","gw":"0","dhcp":"","urc":3}

I (40203) http_server: [http_server/1] Response: OK
I (41075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=87
I (41266) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): GET /status.json
I (41268) network: [http_server/1] callback: cb_on_request_status_json
I (41273) ruuvi_gateway: [http_server/1] ### Start timer for deactivation of configuration mode after timeout (60 seconds)
I (41285) http_server: [http_server/1] Json resp: code=200, content:
{"ssid":null,"ip":"0","netmask":"0","gw":"0","dhcp":"","urc":3}

I (41298) http_server: [http_server/1] Response: OK
I (41949) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): DELETE /connect.json
I (41950) http_server: [http_server/1] DELETE /connect.json, params=
I (41959) http_server: [http_server/1] http_server_netconn_serve: DELETE /connect.json
I (41966) dns_server: [http_server/1] ### Send request to stop DNS-Server
I (41973) wifi_manager: [http_server/1] Send msg: ORDER_DISCONNECT_STA
I (41980) wifi_manager: [wifi_manager/5] MESSAGE: ORDER_DISCONNECT_STA
I (41988) wifi_manager: [wifi_manager/5] WIFI_MANAGER:EV_STATE: Set WIFI_MANAGER_REQUEST_DISCONNECT_BIT, event_bits=0x0d1d
I (42000) network: [wifi_manager/5] callback: on_disconnect_sta_cmd
I (42006) wifi_manager: [wifi_manager/5] Got a command to disconnect from WiFi AP, but we are not currently connected
I (42017) wifi_manager: [wifi_manager/5] WIFI_MANAGER:EV_STATE: Clear WIFI_MANAGER_REQUEST_DISCONNECT_BIT
I (42028) http_server: [http_server/1] Json resp: code=200, content:
{}
I (42035) http_server: [http_server/1] Response: OK
I (42077) ADV_POST_TASK: [adv_post_task/5] adv_cnt=101
I (42078) dns_server: [dns_server/4] Got signal STOP
I (42078) dns_server: [dns_server/4] ### Stop DNS Server
I (42084) dns_server: [dns_server/4] TaskWatchdog: Unregister current thread
I (42091) dns_server: [dns_server/4] TaskWatchdog: Stop timer
I (42098) dns_server: [dns_server/4] TaskWatchdog: Delete timer
I (42104) dns_server: [dns_server/4] Close socket
I (42120) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): GET /status.json
I (42121) network: [http_server/1] callback: cb_on_request_status_json
I (42128) ruuvi_gateway: [http_server/1] ### Start timer for deactivation of configuration mode after timeout (60 seconds)
I (42140) http_server: [http_server/1] Json resp: code=200, content:
{"ssid":null,"ip":"0","netmask":"0","gw":"0","dhcp":"","urc":3}

I (42152) http_server: [http_server/1] Response: OK
I (43075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=91
I (43204) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): GET /status.json
I (43206) network: [http_server/1] callback: cb_on_request_status_json
I (43211) ruuvi_gateway: [http_server/1] ### Start timer for deactivation of configuration mode after timeout (60 seconds)
I (43223) http_server: [http_server/1] Json resp: code=200, content:
{"ssid":null,"ip":"0","netmask":"0","gw":"0","dhcp":"","urc":3}

I (43237) http_server: [http_server/1] Response: OK
I (44075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=97
I (44294) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): GET /status.json
I (44296) network: [http_server/1] callback: cb_on_request_status_json
I (44302) ruuvi_gateway: [http_server/1] ### Start timer for deactivation of configuration mode after timeout (60 seconds)
I (44313) http_server: [http_server/1] Json resp: code=200, content:
{"ssid":null,"ip":"0","netmask":"0","gw":"0","dhcp":"","urc":3}

I (44326) http_server: [http_server/1] Response: OK
I (44996) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): POST /ruuvi.json
I (45001) http_server: [http_server/1] POST /ruuvi.json, params=
I (45004) gw_cfg: [http_server/1] Gateway SETTINGS (via HTTP):
I (45010) gw_cfg: [http_server/1] config: Use eth: yes
I (45017) gw_cfg: [http_server/1] config: eth: use DHCP: yes
I (45022) gw_cfg: [http_server/1] config: eth: static IP: 
I (45028) gw_cfg: [http_server/1] config: eth: netmask: 
I (45034) gw_cfg: [http_server/1] config: eth: GW: 
I (45039) gw_cfg: [http_server/1] config: eth: DNS1: 
I (45045) gw_cfg: [http_server/1] config: eth: DNS2: 
I (45051) ruuvi_gateway: [http_server/1] ruuvi_cb_on_change_cfg: settings_save_to_flash
I (45068) settings: [http_server/5] ### Save config to NVS: not needed (gw_cfg was not modified)
I (45069) ruuvi_gateway: [http_server/5] ruuvi_cb_on_change_cfg: http_server_set_auth: lan_auth_allow
I (45080) ruuvi_gateway: [http_server/5] ruuvi_cb_on_change_cfg: settings_save_to_flash
I (45079) ADV_POST_TASK: [adv_post_task/5] adv_cnt=86
I (45100) settings: [http_server/5] ### Save config to NVS: not needed (gw_cfg was not modified)
I (45103) ruuvi_gateway: [http_server/5] ruuvi_cb_on_change_cfg: http_server_set_auth: lan_auth_allow
I (45114) ETH: [http_server/5] Using ETH DHCP
I (45119) ETH: [http_server/5] ETH ip updated
I (45123) http_server: [http_server/5] Response: OK
I (45349) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): POST /connect.json
I (45353) http_server: [http_server/1] POST /connect.json, params=
I (45357) http_server: [http_server/1] http_server_netconn_serve: POST /connect.json
I (45365) http_server: [http_server/1] POST /connect.json: SSID:NULL, PWD: NULL - connect to Ethernet
I (45375) wifi_manager: [wifi_manager/5] MESSAGE: ORDER_CONNECT_ETH
I (45382) network: [wifi_manager/5] callback: on_connect_eth_cmd
I (45388) ETH: [wifi_manager/5] ### Ethernet start
I (45394) http_server: [http_server/1] Json resp: code=200, content:
{}
I (45402) http_server: [http_server/1] Response: OK
I (45480) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): GET /status.json
I (45482) network: [http_server/1] callback: cb_on_request_status_json
I (45488) ruuvi_gateway: [http_server/1] ### Start timer for deactivation of configuration mode after timeout (60 seconds)
I (45500) http_server: [http_server/1] Json resp: code=200, content:
{"ssid":null,"ip":"0","netmask":"0","gw":"0","dhcp":"","urc":3}

I (45513) http_server: [http_server/1] Response: OK
I (46075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=85
I (46617) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): GET /status.json
I (46619) network: [http_server/1] callback: cb_on_request_status_json
I (46624) ruuvi_gateway: [http_server/1] ### Start timer for deactivation of configuration mode after timeout (60 seconds)
I (46636) http_server: [http_server/1] Json resp: code=200, content:
{"ssid":null,"ip":"0","netmask":"0","gw":"0","dhcp":"","urc":3}

I (46649) http_server: [http_server/1] Response: OK
W (46925) wifi_manager: [Tmr Svc/24] Previous task watchdog feed command is not handled yet
I (47075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=88
I (47814) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): GET /status.json
I (47816) network: [http_server/1] callback: cb_on_request_status_json
I (47821) ruuvi_gateway: [http_server/1] ### Start timer for deactivation of configuration mode after timeout (60 seconds)
I (47833) http_server: [http_server/1] Json resp: code=200, content:
{"ssid":null,"ip":"0","netmask":"0","gw":"0","dhcp":"","urc":3}

I (47846) http_server: [http_server/1] Response: OK
W (47925) wifi_manager: [Tmr Svc/24] Previous task watchdog feed command is not handled yet
I (48075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=97
I (48901) http_server: [http_server/1] Request from 10.10.0.2 to 10.10.0.1 (Host: 10.10.0.1): GET /status.json
I (48904) network: [http_server/1] callback: cb_on_request_status_json
I (48908) ruuvi_gateway: [http_server/1] ### Start timer for deactivation of configuration mode after timeout (60 seconds)
I (48920) http_server: [http_server/1] Json resp: code=200, content:
{"ssid":null,"ip":"0","netmask":"0","gw":"0","dhcp":"","urc":3}

W (48925) wifi_manager: [Tmr Svc/24] Previous task watchdog feed command is not handled yet
I (48934) http_server: [http_server/24] Response: OK
I (49075) ADV_POST_TASK: [adv_post_task/5] adv_cnt=82
assertion "netif already added" failed: file "IDF/components/lwip/lwip/src/core/netif.c", line 405, function: netif_add