Hello, I am trying to make a ir and wifi remote for som IOT stuff. I hope that each button on the remote can be used to first turn on the esp8266 (by closing the circuit) and afterward the same button is able to be used as an input for the esp. Basically each button first have to turn on the esp and afterward get the esp into the right if else block in the code. Do you know any way of doing that.