About version update

hi,

we are detected that the “version” field changes when a device is online or offline. Why this is happening?

thanks!

I guess that an automatic update has happened and the device has not yet been restarted.

Sorry, which version field? Where does it change?

In the API call “http://x.x.x.x:8443/rest/db/status?folder=shared” the key “version” change when device is online or offline. Why this is happening?

Because when a device goes offline we delete their state from the database. When we delete their state from the database, the highest version we’ve seen can change.

I wonder why we do that. I think it is useful to see that we are not in the most up to date state compared to any node. It’s ok that we cannot pull from them, but at least I know whether I need to connect to a network to let them sync.