Question related to network wake up call back

Products working on : XBee3 Digimesh

I have used the default example that comes loaded with pycharm called “synchronous sleep”. Works well.
The network wakeup call back function is triggered when the device wakes up. Does it also makes sure that the device is successfully connected to a network / sleep coordinator as well ?
If not then what function can I use to check if the node has successfully connected to a network as well ?

I have not looked at the Code but the module does check the AI value to see if it is connected or not. You would want to look at the SS, OS, OW, MS and SQ commands.