Chat freely about anything...

User avatar
By fmarzocca
#85499 Hi,

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 :

Code: Select allgpio.trig(STATUS_PIN, "both", changeStatus);


but I got
Code: Select allV2:24:3: error: 'gpio' was not declared in this scope.


Thanks