What product/components do you use and which version/fix level?
Cumulocity OPC UA agent (java) 1013.0.125
Are you using a free trial or a product with a customer license?
customer license
What are trying to achieve? Please describe in detail.
We are running the OPC UA agent, it is registered in Cumulocity IoT as device and we have set up a dashboard which displays several values from our OPC UA server. Now we want to write variables in the OPC UA server with the dashboard.
Do you get any error messages? Please provide a full error message screenshot and log file.
We have no glue how to do that. Is there a widget for that which we didn’t know ?
An example would be great !
writing values to an OPC UA server are possible via operation. As far as i know, there isn’t a standard widget which allows to create opc-ua specific operations. You have to use the REST api: see: OPC UA - Cumulocity IoT Guides
Example: (deviceId == OPC UA Server managed object id)
POST: {{url}}/devicecontrol/operations/
{
"deviceId" : "2810961",
"c8y_ua_command_WriteValue": {
"values": {
"ns=2;s=MySwitch": {
"value": "true"
}
}
},
"description":"Write Value to ns=2;s=MySwitch"
}
Creating a custom widget would be the right solution, which creates such operation.