We are registering and creating device from our custom java microservice. Devices are sending measurements to our custom java microservice and from there we are sending measurements to cumulocity.
In cumulocity we are able to view measurements with correct timestamp, but in ‘Device Management’ devices are seems ‘Offline’ and ‘Last communication’ is also not getting updated.
to 1. The second c8y_connection is only “green” when subscribed for operations via REST API (long-polling) or you have a MQTT client connected which is subscribed to “s/ds”. See also here: Device Management - Cumulocity IoT Guides
to 2: Use RestTemplate for the empty PUT request. Here are some nice example of Alex. You can see how to set the headers (authentication etc.), just adapt it to inventory API and you are fine.
Hey @Stefan_Witschel , I have the same issue with Streaming analytics. Where i send a calculated data to a device using streaming analytics analytics builder, the measurement data received to the device successfully but the connection still shows offline, any idea?
that is intended because streaming analytics should not influence the device connectivity status, only the agent should do this.
In other words: You can calculate values as you wish but if the device is not connected it should be stated as “offline”.