jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.82k stars 720 forks source link

Support arbitrary GPIO control from Wi-Fi #473

Open nicolasnoble opened 4 years ago

nicolasnoble commented 4 years ago

It would be nice if the webserver had an inbound interface to read and toggle GPIO pins arbitrarily.

Basically, I would like to be able to do something of that ilk:

$ curl 'http://myesplink/gpio?pin=12'
pin=12, status=on
$ curl 'http://myesplink/gpio?pin=12&set=off'
pin=12, status=off