- Tue Dec 15, 2015 8:09 am
#36470
https://github.com/marcoschwartz/aREST/ ... er/aREST.hLines 750 & 751.
Code: Select all // Apply on the pin
digitalWrite(pin,value);
Change to.
Code: Select all // Apply on the pin
digitalWrite(pin,High); // sets output pin high to simulate button press.
delay(1000); // delay for length of button press.
digitalWrite(pin,LOW); // sets output pin bak to low to end button press.
I have this setup on GPIO2 so to opperate I can go to ESP IP (192.168.1.xx) and press the button or
go to ESP IP and attach the command (192.168.1.xx/digital/2/1)
format < ESP IP address > / < type of operation (digital write) > / < GPIO to affect (2) > / < effect ( set as 1) >
Mine has just started to hang sometimes (reset fixes it) I'll look into it later.