You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a Cumulocity operation like software update or firmware update is performed, the corresponding fragment updates are expected to be done before the operation is marked successful as listed below. Refer to the section titled SmartREST example from the operation docs listed below:
In the existing impl for software update, the software list is updated, but only after the operation is marked successful whereas it is expected to be done before completing the operation. Same for firmware update operation as well. For device profile, these fragment updates are completely missing.
To Reproduce
Trigger these operations from the cloud and check the order of resultant messages published on the MQTT broker.
Expected behavior
The fragment updates to be done as part of the operation execution, before the operation is marked completed.
**Screenshots
As you can see, the Currently Installed firmware, software and config entries appear as Not installed on the device even after the device profile operation is successful.
Additional context
Even though the device profile operation mandates a 120 message for the applied configuration entries, sending the same doesn't seem sufficient when the device only supports legacy file based config updates. Even when the 120 message is sent, the Currently Installed config entry appears with the warning Installed configuration has the same URL but different name or type than the one in the profile.
This is because the 120 template adds the c8y_Configuration_<config type> fragment to the device, but the legacy config update expects the c8y_ConfigurationDump fragment to be set. There is no explicit SmartREST template available for the same. For individual config update operations, this fragment is added implicitly when the operation is marked successful. But the same doesn't happen when the same operation is applied via a device profile.
The text was updated successfully, but these errors were encountered:
Describe the bug
When a Cumulocity operation like software update or firmware update is performed, the corresponding fragment updates are expected to be done before the operation is marked successful as listed below. Refer to the section titled
SmartREST example
from the operation docs listed below:In the existing impl for software update, the software list is updated, but only after the operation is marked successful whereas it is expected to be done before completing the operation. Same for firmware update operation as well. For device profile, these fragment updates are completely missing.
To Reproduce
Trigger these operations from the cloud and check the order of resultant messages published on the MQTT broker.
Expected behavior
The fragment updates to be done as part of the operation execution, before the operation is marked completed.
**Screenshots
As you can see, the Currently Installed firmware, software and config entries appear as
Not installed on the device
even after the device profile operation is successful.Additional context
Even though the device profile operation mandates a 120 message for the applied configuration entries, sending the same doesn't seem sufficient when the device only supports legacy file based config updates. Even when the 120 message is sent, the Currently Installed config entry appears with the warning
Installed configuration has the same URL but different name or type than the one in the profile
.This is because the 120 template adds the
c8y_Configuration_<config type>
fragment to the device, but the legacy config update expects thec8y_ConfigurationDump
fragment to be set. There is no explicit SmartREST template available for the same. For individual config update operations, this fragment is added implicitly when the operation is marked successful. But the same doesn't happen when the same operation is applied via a device profile.The text was updated successfully, but these errors were encountered: