[ST Edge] How to check online/offline status of device in a routine?

I can ping and see if everything is online. If a device comes online, is there a callback within the same device? So if a device comes :online() I can have it do additional work like fetch its state from the LAN connected device. Basically, I would like to see online and offline become lifecycle callbacks that are triggered by calling device:online() and device:offline(). If this is not currently possible, I would like to make a feature request of the engineering team.

Thanks @nayelyz

1 Like