How to use Attachinterrupt() in Mongoose OS

If you are asking a question, please follow this template:

  1. My goal is: To interface a hall sensor which uses attachinterrupt() and detachinterrupt() functions in Arduino IDE
  2. My actions are: I couldn’t find any documents related to Interrupts in google.
  3. My expectation & question is: Can some help me with basic interrupt functions or anything one could think of for using an Hall sensor like Flowmeter in Mongoose.

I’m new to Mongoose environment and i could really use some advice.

https://mongoose-os.com/docs/mongoose-os/api/core/mgos_gpio.h.md

I supose mgos_gpio_set_int_handler is the equivalent of attachinterrupt and mgos_gpio_remove_int_handler is the equivalent of detachinterrupt

1 Like