Hi All,
After MCU is not connect to WiFi in every 5 minutes or MCU attemp to connect to WiFi at 14 times. It caused MCU reboot.
How could I fix this trouble?
This is my Log.
[Oct 18 23:02:20.909] mgos_wifi_sta.c:516 Trying Speedy-Wifi-F2 AP 00:00:00:00:00:00 RSSI 0 cfg 0 att 13
[Oct 18 23:02:20.909] esp32_wifi.c:653 WiFi STA: protocol BGN (0x7)
[Oct 18 23:02:20.909] main.cpp:723 WiFi STA connecting 0x0
[Oct 18 23:02:20.909] mgos_net.c:89 WiFi STA: connecting
[Oct 18 23:02:20.909] main.cpp:698 Net connecting...
[Oct 18 23:02:23.115] mgos_wifi.c:70 WiFi STA: Disconnected, reason: 201
[Oct 18 23:02:23.115] mgos_wifi_sta.c:536 Connect failed
[Oct 18 23:02:23.115] I (294228) wifi:flush txq
[Oct 18 23:02:23.115] I (294238) wifi:stop sw txq
[Oct 18 23:02:23.115] I (294238) wifi:lmac stop hw txq
[Oct 18 23:02:23.115] main.cpp:718 WiFi STA disconnected, reason 201
[Oct 18 23:02:23.115] mgos_net.c:84 WiFi STA: disconnected
[Oct 18 23:02:23.115] main.cpp:695 Net disconnected
[Oct 18 23:02:25.096] mgos_wifi_sta.c:496 No candidate APs
[Oct 18 23:02:30.771] main.cpp:3942 ###### Credit Spending...
[Oct 18 23:02:30.771] main.cpp:776 Save Reference..
[Oct 18 23:02:31.042] mgos_sys_config.c:174 Saved to conf9.json
[Oct 18 23:02:40.108] e[0;32mI (311248) phy_init: phy_version 4660,0162888,Dec 23 2020e[0m
[Oct 18 23:02:40.108] I (311258) wifi:mode : sta (a4:e5:7c:57:c8:18)
[Oct 18 23:02:42.284] mgos_wifi_sta.c:516 Trying Speedy-Wifi-F2 AP 00:00:00:00:00:00 RSSI 0 cfg 0 att 14
[Oct 18 23:02:42.329] esp32_wifi.c:653 WiFi STA: protocol BGN (0x7)
[Oct 18 23:02:42.329] main.cpp:723 WiFi STA connecting 0x0
[Oct 18 23:02:42.329] mgos_net.c:89 WiFi STA: connecting
[Oct 18 23:02:42.329] main.cpp:698 Net connecting...
[Oct 18 23:02:43.139] mgos_provision_state:54 Provisioning timeout, resetting device
[Oct 18 23:02:43.139] mgos_provision_btn.c:29 Resetting to factory defaults
[Oct 18 23:02:43.139] mgos_sys_config.c:204 Removed conf9.json
[Oct 18 23:02:44.174] mgos_system.c:58 Rebooting in 100 ms
[Oct 18 23:02:44.174] mgos_mongoose.c:66 New heap free LWM: 112360
[Oct 18 23:02:44.279] I (315418) wifi:flush txq
[Oct 18 23:02:44.279] I (315428) wifi:stop sw txq
[Oct 18 23:02:44.279] I (315428) wifi:lmac stop hw txq
[Oct 18 23:02:44.279] mgos_vfs.c:1026 Unmounting filesystems
[Oct 18 23:02:44.462] I (315448) wifi:Deinit lldesc rx mblock:4
[Oct 18 23:02:44.462] mgos_system.c:43 Restarting
[Oct 18 23:02:44.462] ets Jun 8 2016 00:22:57
[Oct 18 23:02:44.462]
[Oct 18 23:02:44.462] rst:0xc (SW_CPU_RESET),boot:0x16 (SPI_FAST_FLASH_BOOT)
And This is my mos.yml
- ["wifi.sta1.enable", true ]
- ["wifi.sta1.ssid", "evergrowap" ]
- ["wifi.sta1.pass", "11111111" ]
Thank you for all reply.