I am wondering if I can use (and how) gpio.trig() with a generic ESP8266.
My aim is to trigger an action when a GPIO toggles from LOW to HIGH and viceversa, through a callback.
I have just tried :
gpio.trig(STATUS_PIN, "both", changeStatus);but I got
V2:24:3: error: 'gpio' was not declared in this scope.Thanks