I have an application for ESP8266 where I use two ways to change the state of GPIO - HTTP and MQTT. Because I'd like to know the status for better visualization I currently use global variable but it's very annoying that I need to make sure it's always updated where I change the state of the GPIO.
Do you think it's safe to read the state of this GPIO with function GPIO_INPUT_GET(PIN_GPIO) even though the pin is set to output? (in Arduino I know it's safe btw)
It would make life way more easy.
Thanks,
K.