Since stop mode is now supported for mesh devices with DeviceOS 0.9.0, I fixed my application for Xenon (that sends out some messages every minute) to use it by replacing
delay(60000) with like
System.sleep(D1, RISING, 60). However, I experienced Xenon behaves almost randomly after waking up and eventually gets stuck with the status LED flashing (sometimes green, sometimes cyan).
As I figured out so far, it seems not working with
SYSTEM_THREAD(ENABLED). When I removed
SYSTEM_THREAD(ENABLED) just for testing, it started to work as expected.
Now my question is: Am I correct to assume it does not work with
SYSTEM_THREAD(ENABLED)? If yes, is it a known issue that will be resolved in the future? Is there any known workaround?
UPDATE: Issue resolved by adding
System.sleep(). It ensures the communication systems ready before sending the next message after waking up from the stop mode.