Via MQTT ProfileId to update ManagedObject is unknown

What product/components do you use and which version/fix level?

Using thin-edge.io or any other agent that is connected via MQTT to Cumulocity Cloud/EDGE

What are trying to achieve? Please describe in detail.

Asigning an DeviceProfile triggers the following message on the topic c8y/s/ds on the device:

527,10000000b1bc91d3,$CONF,URL

However as described here: Link the fragment c8y_Profile should be updated recording the documentation but the profileID is unknown and not transmitted via MQTT.

How do I get the profileID without Rest?

1 Like

Did you try to mark your Device Profile as being applied with sending: “121,true” (the set device profile operation, without specifying the optional profile ID).

IIRC it’s part of the server-side logic to find the proper profileId prior to the update of the Managed Object. This way the device does not have to know the Id of your device profile.

Hi Murat,

the 121 static template does not require the profile ID. If it is not provided it is resolved form the oldest device profile operation in status EXECUTING. Here is a reference to our public documentation: SmartREST 2.0 - Cumulocity IoT Guides

We also have a complete guide on the required steps to integrate device profiles here: Device management library - Cumulocity IoT Guides

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.