Hello,
I am trying to figure whether it is possible to put a mDot module to sleep (not necessarily deep sleep) and wake it through multiple external pins.
I tried to modify the "ota_example" code by adding a second call to:
dot->setWakePin(XBEE_AD3);
in the:
sleep_wake_interrupt_only(bool deepsleep)
function which is located in the "dot_util.cpp" file but that does not seem work.
I also tried to add the following code in the main loop but without further success:
InterruptIn in(XBEE_AD3);
in.rise(&rise_handler);
in.fall(&fall_handler);
Any help appreciated, thank you!
Hello,
I am trying to figure whether it is possible to put a mDot module to sleep (not necessarily deep sleep) and wake it through multiple external pins. I tried to modify the "ota_example" code by adding a second call to:
dot->setWakePin(XBEE_AD3);
in the:
sleep_wake_interrupt_only(bool deepsleep)
function which is located in the "dot_util.cpp" file but that does not seem work. I also tried to add the following code in the main loop but without further success:
InterruptIn in(XBEE_AD3); in.rise(&rise_handler); in.fall(&fall_handler);
Any help appreciated, thank you!