ruuvi / ruuvi.gateway_esp.c

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

When the configuration mode is deactivated after the timeout (1 hour), LED is solid green #1018

Closed TheSomeMan closed 2 months ago

TheSomeMan commented 2 months ago

Affected version: v1.15.0 LED must blink with a red color to show that there is no connection.

I (3605423) ruuvi_gateway: [main/1] MAIN_TASK_SIG_DEACTIVATE_CFG_MODE
I (3605423) ruuvi_gateway: [main/1] ### Stop the timer for the deactivation of Configuration Mode
I (3605429) ruuvi_gateway: [main/1] DEACTIVATE_CFG_MODE: Stop Ethernet deferred activation timer
I (3605438) ruuvi_gateway: [main/1] ### DEACTIVATE_CFG_MODE: Stop Wi-Fi AP
I (3605446) wifi_manager: [main/1] wifi_manager_stop_ap
I (3605452) wifi_manager: [wifi_manager/5] MESSAGE: ORDER_STOP_AP
I (3605458) wifi_manager: [wifi_manager/5] ### Configure WiFi mode: Station
I (3605467) wifi:mode : sta (94:b9:7e:4e:b2:70)
I (3605471) wifi_manager: [sys_evt/20] WIFI_EVENT_AP_STOP
I (3605476) wifi_manager: [wifi_manager/5] WIFI_MANAGER:EV_STATE: Clear WIFI_MANAGER_AP_ACTIVE
I (3605486) network: [wifi_manager/5] ### callback: on_ap_stopped
I (3605493) LEDS: [leds_task/8] LEDS_TASK_SIG_ON_EV_WIFI_AP_STOPPED (ready=1)
I (3605500) ruuvi_gateway: [main/1] ### DEACTIVATE_CFG_MODE: Disable WPS
I (3605508) wifi_manager: [main/1] wifi_manager_disable_wps
I (3605514) wifi_manager: [wifi_manager/5] MESSAGE: ORDER_DISABLE_WPS
I (3605524) network: [wifi_manager/5] ### callback: on_wps_stopped
I (3605528) ruuvi_gateway: [main/1] DEACTIVATE_CFG_MODE: Gateway has not configured yet, start Ethernet
I (3605538) ruuvi_gateway: [main/1] main_task_handle_sig_deactivate_cfg_mode: ### Start Ethernet
I (3605542) LEDS: [leds_task/8] LEDS_TASK_SIG_ON_EV_WPS_DEACTIVATED (ready=1)
I (3605555) ETH: [main/1] ### Ethernet start
W (3605560) esp_eth: driver started already
E (3605565) ETH: [main/1] ./main/ethernet.c:405 {ethernet_start}: Ethernet start failed, err=259 (ESP_ERR_INVALID_STATE)
I (3605577) ETH: [main/1] ### Set hostname for Ethernet interface: RuuviGateway9C2C
I (3605585) ruuvi_gateway: [main/1] DEACTIVATE_CFG_MODE: Configuration mode is still active - do not restart services
I (3605596) ruuvi_gateway: [main/1] MAIN_TASK_SIG_WIFI_AP_STOPPED
I (3607416) LEDS: [leds_task/8] LEDS: New blinking mode: G
markoaamunkajo commented 2 months ago

If you remove configuration from Gateway and not connected to Ethernet and leave it for 1 hour LED should start blinking red

markoaamunkajo commented 2 months ago

QA passed