ESP 192.168.0.157 has a relay as sitch impunt on GPIO 14
ESP 192.168.0.155 has a wall switch (push button) on GPIO13
how i can use the wall switch to turn on / off the relay on ESP 157?
i set a rule:
Code: Select all
on pulsante155#Switch do
if [pulsante155#Switch]=1
SendToHTTP 192.168.0.157,80,/control?cmd=GPIO,14,0
else
SendToHTTP 192.168.0.157,80,/control?cmd=GPIO,14,1
endif
endon
but, if i write the command SendToHTTP 192.168.0.157,80,/control?cmd=GPIO,14,0
inside the web page of espeasy tools it works