user1881745
user1881745

Reputation: 21

Realtime Notification Device status / Cumulocity Java Client

how I can locate the status of devices via Java API ?

Thanks

Upvotes: 0

Views: 218

Answers (1)

TyrManuZ
TyrManuZ

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

Related Questions