I am trying to make a project using firebase database via wifi to control led and pump online. I use esp8266 to make this project. But in case user change wifiname or password, or make a command to ESP8266, so they must change these infor in ESP8266 via bluetooth offline. So now I need ESP8266 can connect wifi and receive infor from bluetooth at the same time. I intend ESP8266 with bluetooth module HC 06. Can ESP8266 receive user command from bluetooth while connecting wifi at the same time ?
Note: I used ESP32 but it can't connect wifi and bluetooth at the same time.
Or any other solution to solve this case ? Please help. Thank you!
ESP32 has only one antenna and one RF module that can be used for WiFi and Bluetooth. Additionally, WiFi and Bluetooth threads run on a dedicated core (core number 1 I think). So the ESP32 cannot run WiFi and Bluetooth concurrently, meaning at the same time. To have both, you should stop one to run the other one, and this may be tricky and maybe impossible.
But the ESP8266 can use its own antenna and RF circuit for Wifi and its serial port to communicate with a Bluetooth module such as HC06. So I think the ESP8266 + HC06 is the good solution for you, if bluetooth waves do not interfere with wifi.
and you might want to go for HM 10 as HC-06/05 aren't supported by iOS
But in case user change wifiname or password, or make a command to ESP8266, so they must change these infor in ESP8266 via bluetooth offline.
How about leaving the wifiname & password the same and use OTA instead ?
Thank you, bro for let me know more infor about this case.
I bought a HC-06 and I am trying to make ESP8266 can use bluetooth with HC-06 while connect wifi at the same time.
I will tell you about result next.
Thanks !