Lost mode option to automatically reactivate the lost device after the lost time validity expires
Overview
The objective is to enhance the lost mode functionality by automating the reactivation of devices once the validity time for lost mode has elapsed. This enhancement will be configurable through a flag to enable or disable the feature.
If disabled, the lost mode system will continue to operate as it did in versions prior to 3.6.
Solution
Auto turn off lost mode mechanism
A job scheduler is implemented that can scan the lost mode table with a configurable frequency and for the devices detected that have met the time criteria (lost mode duration expired), it will reactivate them.
For easier translation of the cron format into human readable form and syntax validation, a CRON Parser can be used.
![Screenshot 2024-03-26 at 10.28.16.png](../../__attachments/3554609093/Screenshot%202024-03-26%20at%2010.28.16.png?inst-v=ffa2d127-74f7-4a38-ac00-bc62b4eb8eb4)