I watched video where you explained how to send information to a server. I also saw other video where showed how to send information from a server to a NodeMCU device. However, I’m looking for a tutorial that teaches both sending and receiving information. Could you assist me with this?Also note that, I dont want to use third party iot platform, rather i prefer php+mysql, django etc. And also i want to add multiple device and multiple users
Hi.
Can you tell me what tutorials are you referring to? So that I can better understand what you’re trying to achieve.
Regards,
Sara
Thanks a lot. I looked at
- https://randomnerdtutorials.com/control-esp32-esp8266-gpios-from-anywhere/
- https://randomnerdtutorials.com/visualize-esp32-esp8266-sensor-readings-from-anywhere/
In these two tutorial, one is sending information to server and other is receiving information from server. However, I’m looking for a tutorial that teaches both sending and receiving information for multiple users and multiple devices.
Hello Mosaddeq,
Unfortunately an external website can’t connect directly to an ESP32/ESP8266 with that approach…
With PHP and using an external hosting, the ESP32/ESP8266 is the only device that can make HTTP requests to the server to retrieve information, but it’s impossible to do it the other way around.
For two way communication, you might consider using MQTT
Just to clarify my previous answer, it’s not possible to send data to the ESP32 from an external server… In that example 1. https://randomnerdtutorials.com/control-esp32-esp8266-gpios-from-anywhere/ The ESP is requesting data to the server every few seconds to monitor for changes.
At the moment I don’t have any guide that has both features in a single project, but it’s definitely possible to merge the 2 examples…