Home/Support/Support Forum/Why does device discovery cause MicroPython to stop running on my sleeping end device?

Why does device discovery cause MicroPython to stop running on my sleeping end device?

0 votes
I have several end devices configured for MicroPython Sleep (SM 6). In XCTU, if I do a device discovery-- click on the button to "Discover radio modules in the same network"-- the end devices will sometimes exit sleep, and not return. MicroPython execution is also stopped, requiring me to physically reset the device. Any ideas how this state can be detected/avoided?
asked Jan 25 in XBee3 ZigBee by scribblelab New to the Community (1 point)

Please log in or register to answer this question.

2 Answers

0 votes
You need to use the Micro Python sleep() function.
answered Jan 27 by mvut Veteran of the Digi Community (14,818 points)
0 votes
I'm calling module.sleep_now(60000) in a while loop, where module is instantiated as xbee.XBee(), so the device should re-enter sleep mode after a minute or so. But it doesn't.
answered Feb 1 by scribblelab New to the Community (1 point)
...