jeelabs / esp-link

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

gpio usage #519

Open lawashnik opened 3 years ago

lawashnik commented 3 years ago

Hi. How can I programm gpio pins? Besides using serial bridge I want to manage gpio's state over wifi. Is it possible? Like curl requests or something..?

uzi18 commented 3 years ago

@lawashnik Actually it is not supported

lawashnik commented 3 years ago

I find something like solution. I can change reset pin to any and its state become high. But previous pin state doesn't become low. It becomes low only after resetting esp. Better than nothing I guess.

uzi18 commented 3 years ago

How many gpios you need?

lawashnik commented 3 years ago

How many gpios you need?

Only one.

uzi18 commented 3 years ago

Can add api to set/reset this pin if you need

janb14 commented 3 years ago

I have also interest in switching gpio through the webapi. I try to build an automated esp32-cam testing stand. If a firmware over OTA fails i would like to use this project to flas a default image. The problem is i need to toggle power and connect GPIO0 to GND to programm the esp32-CAM on demand.

ktostam commented 10 months ago

The ability to control even one GPIO via API would be great.

uzi18 commented 10 months ago

It is possible. Someone should write it ;)