General area when it fits no where else

Moderator: Mmiscool

User avatar
By JMS
#36416 Is there a way to read the status of an output pin into a variable?
I can see the status under the /vars page but when I try to read it with pi it changes the state of the pin.

I think that ESP8266 Basic is a great platform for the ESP so much potential here!

JMS
User avatar
By Mmiscool
#36441 Normally this would be done with a tracking variable in basic.

assign a value to a variable.
Set the pin to that value.
Read the variable to check what you last set the in to.

I am not oped to implementing this in the functions but it could be confusing.