I want to run both modes of ESP8266(softAP and STA) simultaneously. I have a vision for my project where I want the esp8266 to switch automatically between both modes. If it is getting a good strength WIFI signal nearby, it will connect to that wifi to send the sensor data; if not, then use the SoftAP for sending the recorded sensor data. Is it even possible to do?
I am not much experienced to do this on my own. Need help with the code and the approach if anyone has one.
Thanks in Advance.
we designed a system in which for now, we are sending the sensor data from one nodeMCU to another using this softAP for communication, from where we have a camera attached to raspberry pi to click the picture and use that picture for further image processing.
We used softAP till now considering there would be places where we won't be able to get a constant wifi signal to use for communication, but now we just want to enhance our system so that it would be able to use the wifi if the system is able to get good signal strength otherwise will continue to use the softAP for the same.
Would it be possible to do that? That's my first question and if yes then please guide me to do the same.
If you have a raspberry pi or a smartphone where the NodeMCU will be used, it would be better to use one of them as a hotspot or AP if you can. The NodeMCU can act as an AP, but the performance is not great due to its relatively slow processor. If you use the NodeMCU as an AP and a station at the same time, performance could be very poor.