thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.72k stars 829 forks source link

OPC UA - Update Shared Attributes in TB once changed in PLC #381

Closed ExPS-Pisko closed 4 years ago

ExPS-Pisko commented 4 years ago

Hi folks, I am using PLC Siemens - OPC UA Server from Siemens - TB Gateway (Python) - TB 3.0

I need to write some parameter down to PLC. I use the Shared attributes in TB and through the Gateway, the parameter write functions perfectly. However, when this parameter changes in PLC (NOT from TB!!!), the shared attribute does not update in TB...

Does anybody know how to do that? Am I missing something in the New TB Gateway philosophy?

OK, I can read the value from PLC as Client Side attribue and have a rule to change also the Shared attribute (is it not endless loop???) but this seems to me very cumbersome...

Any suggestions are welcome! Best regards Michal

imbeacon commented 4 years ago

Hi @ExPS-Pisko

Thank you for your interest in ThingsBoard IoT gateway.

The gateway, like any device in ThingsBoard cannot change shared attributes, it can only subscribe and get their values. More information here.