tonyp7 / esp32-wifi-manager

Captive Portal for ESP32 that can connect to a saved wireless network or start an access point where you can connect to existing wifis.
MIT License
684 stars 222 forks source link

Classic Bluetooth and WiFi Manager together #146

Open halyssonJr opened 2 years ago

halyssonJr commented 2 years ago

Hi,

Is it possible to use bluetooth and wifi at the "same time"? I've seen some examples related to BLE and WiFi coexist , click here

@tonyp7 ;)

mkjanke commented 2 years ago

FWIW - I think I have co-existence working with NimBLE and WiFi manager. With defaults, the ESP crashed with a message similar to "Error! Should enable WiFi modem sleep when both WiFi and Bluetooth..."

I set 'Software controls WiFi/Bluetooth coexistence' to off in menuconfig, and the ESP boots with both functional. I suspect, but did not try, to change #define DEFAULT_STA_POWER_SAVE from WIFI_PS_NONE to WIFI_PS_MODEM in wifi_manager.h as an alternative.