I am controlling a relay. I can tun on the relay by interrupt into a pin or by UDP server /client. Regardless of what of the two ways turn it on (or off), the ESP sets an output that drives the relay.
GPIO setting for input pin:
gpio.mode(6, gpio.INT, gpio.PULLUP)
gpio.trig(6, 'both', debounce(onChangeLight) )
All works well.
I have an alarm set to 'timeout' after 30 minutes. At this time, the relay is switched off.
For some reason, it then ignores the GPIO input pin from that point forward (until I reset the device).
The only way to turn the relay on (or off) from that point forward is by the client /server (over the network).
The input pin is ignored.