Reputation: 21
how I can locate the status of devices via Java API ?
Thanks
Upvotes: 0
Views: 218
Reputation: 2049
Status information about the device is usually contained in the managedObject. Getting this information can be simply done through querying the object with InventoryApi.
For realtime notifications you can take a look at the class InventoryRealtimeNotificationsSubscriber. You would subscribe to with the ID of the managedObject. You will receive all updates to the object itself (like status changes) while subscribed to it.
Upvotes: 1