Sorry about the confusion again. Attached is the block diagram sketch to kinda show how its hooked up.
ESP-2 is currently using inputs on pins 3,2,0 for various email alarms being sent. Each one has a different message to know what is being triggered. It sends the email with any of those pins go LOW. Its IP is 192.168.0.22 on my network.
ESP-1 is my web server with address 192.168.0.20. It is physically connected to relays and to ESP-2 via 1k OHM resistors. It outputs a LOW on GPIO pins 3,2,0 depending on what relay gets triggered. I also triggered GPIO 4,5 HIGH to activate the relays via the website that ESP-1 serves and also by typing in 192.168.0.20/5/ON or /OFF depending on the state I need.
ESP-3 is also a web server. It has a magnetic door switch and a relay physically wired to it. Door switch on GPIO5 as a LOW input and relay on GPIO 2 output HIGH to trigger the relay. Its address is 192.168.0.21. I can connect to it to activate the relay by going to the website it serves and clicking the web button or 192.168.0.21/2/ON or /OFF.
On ESP-1s webpage, I have an HTML "inline frame" type button that when pressed it will trigger 192.168.0.21/ON or /OFF when toggled. Clicking this web button does not refresh anything on the page it just appears to output that request to that URL.
The part above works just fine.
What I would like to do is have the door switch that is physically connected to ESP-3 GPIO 5 INPUT send a request to ESP-1 GPIO3 OUTPUT so it will set ESP-2 GPIO INPUT LOW.
Since ESP-2 is only the mail server and ESP-3 is on the other side of the building from ESP-1 and ESP-2, I couldn't come up with any other way to send the email notifications besides going through ESP-1 to get to ESP-2.
I haven't figured out how to use a digitalRead of ESP-3 GPIO5 to send such a request. The only thing I could think of was to trigger ESP-1 GPIO3 via the URL 192.168.0.20/ON but I lack the coding knowledge.
I can upload my sketches too if you need them to help understand what I am trying to do.
Thanks again
