Thanks Piyush,
I think we know what's going on after looking at the serial:
Code: Select all
CalEPD component version 1.0.6
Wave5i7Color() constructor injects IO and extends Adafruit_GFX(600,448)
[0;32mI (935) cpu_start: Starting scheduler on PRO CPU. [0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU. [0m
[0;32mI (944) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations [0m
12:37:59.425 [RX] - NVS Read OK. Minutes till next refresh: 27
[0;32mI (1024) system_api: Base MAC address is not set [0m
[0;32mI (1024) system_api: read default base MAC address from EFUSE [0m
[0;32mI (1044) wifi_init: rx ba win: 6 [0m
[0;32mI (1054) wifi_init: tcpip mbox: 32 [0m
[0;32mI (1054) wifi_init: udp mbox: 6 [0m
[0;32mI (1054) wifi_init: tcp mbox: 6 [0m
[0;32mI (1054) wifi_init: tcp tx win: 5744 [0m
[0;32mI (1054) wifi_init: tcp rx win: 5744 [0m
[0;32mI (1064) wifi_init: tcp mss: 1440 [0m
[0;32mI (1084) esp_rmaker_work_queue: Work Queue created. [0m
[0;32mI (1104) esp_mqtt_glue: I
12:37:59.525 [RX] - nitialising MQTT [0m
[0;32mI (1104) esp_rmaker_node: Node ID ----- UuLQj6edhdaRVczNsbMdt8 [0m
[0;32mI (1114) esp_rmaker_ota: OTA state = 2 [0m
[0;32mI (1124) esp_rmaker_ota_using_params: OTA enabled with Params [0m
[0;32mI (1124) esp_rmaker_time_service: Time service enabled [0m
[0;32mI (1124) esp_rmaker_time: Initializing SNTP. Using the SNTP server: pool.ntp.org [0m
[0;32mI (1134) esp_rmaker_core: Starting RainMaker Work Queue task [0m
[0;32mI (1144) esp_rmaker_work_queue: RainMaker Work Queue task started. [0m
[0;32mI (1144) wifi_prov_scheme_ble: BT memory released [0m
[0;32mI (1154) app_wifi: Already provisioned, starting Wi-Fi STA [0m
[0;32mI (1154) wifi_prov_scheme_ble: BTDM memory released [0m
[0;32mI (1164) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07 [0m
12:38:01.743 [RX] - [0;32mI (3324) app_wifi: Disconnected. Connecting to the AP again...
The ESP32 is stuck trying to connect to an old WiFi, and does not open the QR code and BLE to get provisioned again.
But the App in this case should report something otherwise the user is stuck in this Select network without any network to choose from.
From my side what I need to do is to also inform the user showing a text message and finding a way to render the QR in the display, and also informing that it's trying to connect to WiFi. Also maybe it's a good idea to store in the NVS the amount of WiFi retries, and go to sleep 10 minutes or so before trying again, and in case it does not connect for long time then call the wifi_reset so it will start on provisioning mode again.
This is only an issue if the user decides to switch off the Router, something that is quite normal if people go in holidays or decide to that for any reason.