-->
Page 1 of 1

save gpio state

PostPosted: Sat Dec 17, 2016 5:04 pm
by bubo1997
i would like to know if is it possible to save the state of a pin so when the module is restarted it inmediatly puts the pin in the saved state. i want this information cos i´ve purchased a sonoff wifi and i would like to code it so i can use the normal switch o my house without interfiering with the wifi use. i'll explain myself :

this is the conf: power---------> normal house switch ---------> sonoff wifi ---------->bulb
what i want to do is that every time i switch off and then on the sonoff with the "normal house switch" i toggles the previous state an for that i need to save it before.

i hope ive explained myself correctly, thank you




pardon my enghish it isn`t my mother tonge(spanish is , in case you are asking :mrgreen: )