Dear all, I’m writing to kindly suggest to create a web server (maybe using web socket) that permit to verify the state of the outputs when a new clients are connected. Actually using a normal web server you don’t have the way to know the real state of the outputs. I know that your project “Control ESP32 and ESP8266 GPIOs from Anywhere in the World” it works as I asked, but it use a cloud service.
Many thanks in advance for your attention
I’m not really sure what you mean.
Do you want the current output state always updated on the web server?
We published a new tutorial today that keeps the output state updated. In the example the output can be controlled with a physical pushbutton and with a web server. But it also works with multiple clients.
When you open the web server it always shows the last state even if you access it from a different client.
Here’s the link to the project: https://randomnerdtutorials.com/esp32-esp8266-web-server-physical-button/
I hope this helps.
Thank you very much indeed for your quick reply ! Even considering that my question is not completely clear, the project that you have published is exactly what I mean.
I will try to add one more GPI in order to control two outputs.
Thanks again and best regards
You can delete the physical button part from the code if you don’t need it. It will work well without that part.
Thanks for following our work.