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

RPi with opcua server #528

Closed Shining9311 closed 2 years ago

Shining9311 commented 3 years ago

Describe the issue Hi I want to use RPi with opcua server. I install Thingsboard IoT Gateway and use IoT Gateway Configuration guide for configuring it. i replace Access Token and Connector in tb_gateway.yaml and i got error about conncecting. after that i change local host with RPi ip address, srial number of device and showMap(false -> true) in opcua.json file and again i got errors: ""2021-06-13 19:33:24" - WARNING - [tb_updater.py] - tb_updater - 85 - Cannot connect to the update service. PLease check your internet connection." ""2021-06-13 19:33:29" - ERROR - [opcua_connector.py] - opcua_connector - 110 - Connection refused on connection to OPC-UA server with url 192.168.1.118:4840/freeopcua/server/"

please help me to fix it thanks

Configuration (Attach your configuration file) Notate: Remove Access token from file if you wanna attach tb_gateway.yaml

Connector name (If you need help with some connector/converter): [OPCUA Connector]

Error traceback (If it was raised):

'deviceName'
Traceback (most recent call last):
  File "<input>", line 2, in <module>
KeyError: 'deviceName'

Versions (please complete the following information):

samson0v commented 3 years ago

Hi @Shining9311 , please provide info about your opcua config file (config/opcua.json) and the structure of your OPC-UA server. Thanks for your interest in ThingsBoard IoT Gateway!

imbeacon commented 2 years ago

Hi @Shining9311 ,

Unfortunately, we cennot help you, because you didn't provide configuration files for your gateway. We close this issue, but if the issue still reproducible and you cannot connect to your opcua server please open the new one and attach your configuration there.