Raspberry pi with thin-edge, java code for interacting Raspberry with Cumulocity.
Detailed explanation of the problem:
I am using java to process request sent or received between raspberry pi and cumulocity.
I am using “relay control” widget to control my raspberry pi. When I am sending acknowledgement in “persistent” mode, the status is only changing in real-time not in “cumulocity database”. But according to persistent mode, status should be updated in both real-time and cumulocity databse.
The 503 static template does not support implicit status for the single relay operation (see: #503 template + Updating operations). It only supports implicit status setting for the c8y_RelayArray operation.
If you want to continue with the single relay widget and operation the you’ll have to set the status of your relay in the device managed object yourself. We have a preview of future documentation about how to do this available here: Single relay - preview
Instead you could also use the relay array widget and operation. Then you could communicate this status implicitly in the message with the 503 template. The same preview documentation also contains a section about relay array: Relay array - preview
Can 518 static template work to update the status in “cumulocity database” in case of single relay? Actually I have tried using 518 template but that too did not worked. Any idea why 518 did not worked?