-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Labels
Description
No good deed goes unpunished. Because of this issue, WiFi.setSleep(false)
was added. Once Bluetooth is turned on, we get the following error reported by the ESP32 core IDF:
E (18293) wifi:Error! Should enable WiFi modem sleep when both WiFi and Bluetooth are enabled!!!!!!
I have never seen so many exclamation points.
This occurs when Bluetooth SPP+BLE mode, SPP mode, or BLE mode is running and ESP-NOW is started.
Coexistence doesn't seem to be an issue: WiFi (including ESP-NOW) + BT SPP/BLE is supported in Station mode.
So if Bluetooth is on, and WiFi is on, we can't use WiFi.setSleep(false)
. Possible solution is to run WiFi in WIFI_AP_STA mode, but this did not fix the issue.
For now, it looks like we need to prevent ESP-NOW and WiFi from running at the same time.