Re: WIFI/BLE Simultaneously
Posted: Fri Oct 04, 2019 11:50 pm
Hi, it is said above that using BT and WiFi at the same time as long as they are not used simultaneously may work.
I cannot make it work even when only one is used at any one time.
I have a ESP32-CAM that sends emails with photos but needs WiFi connection.
Wifi credentials are stored on SD card.
Asking users to remove the SD card to configure WiFi credentials is quite a pain, most cannot do it.
So I decided that I could use Bluetooth to setup a config.txt file with the necessary credentials and the problem would be solved.
The problem is that I cannot make ESP32 WiFi and Bluetooth (serial) work activated (even not transmuting) at the same time.
I would like to keep Bluetooth on for about 2 minutes when the the system is powered up then switch off Bluetooth and let WiFi take over.
I can indeed switch off Bluetooth using the command btStop(); but, although Bluetooth disconnects and WiFi can connect back to the router connection with the mail server always fail.
Removiing the following line from Setup() solves the problem.
// inti Bluetooth
SerialBT.begin("myBT"); //Bluetooth device name
Assistance welcome.
Thanks
Paulo
I cannot make it work even when only one is used at any one time.
I have a ESP32-CAM that sends emails with photos but needs WiFi connection.
Wifi credentials are stored on SD card.
Asking users to remove the SD card to configure WiFi credentials is quite a pain, most cannot do it.
So I decided that I could use Bluetooth to setup a config.txt file with the necessary credentials and the problem would be solved.
The problem is that I cannot make ESP32 WiFi and Bluetooth (serial) work activated (even not transmuting) at the same time.
I would like to keep Bluetooth on for about 2 minutes when the the system is powered up then switch off Bluetooth and let WiFi take over.
I can indeed switch off Bluetooth using the command btStop(); but, although Bluetooth disconnects and WiFi can connect back to the router connection with the mail server always fail.
Removiing the following line from Setup() solves the problem.
// inti Bluetooth
SerialBT.begin("myBT"); //Bluetooth device name
Assistance welcome.
Thanks
Paulo