1

thingsboard 会连接到远程 OPC-DA 服务器吗?如果是这样,您如何配置 opc-config.json 以连接到 IBA?

> {   "servers": [
>     {
>       "applicationName": "",
>       "applicationUri": "",
>       "host": "10.x.x.x.",   
>       "port": 135,
>       "scanPeriodInSeconds": 10,
>       "timeoutInMillis": 5000,
>       "security": "None",
>       "identity": {
>         "type": "username",
>         "username": "me",
>         "password": "me password"
>       },
>       "mapping": [
>         {
>           "deviceNodePattern": "Channel1\\.Device\\d+$",
>           "deviceNamePattern": "Device ${_System._DeviceId}",
>           "attributes": [
>             {"key":"Tag1", "type": "string", "value": "${Tag1}"}
>           ],
>           "timeseries": [
>             {"key":"Tag2", "type": "long", "value": "${Tag2}"}
>           ]
>         }
>       ]
>     }   ] }

我在配置中尝试了几种不同的输入,但网关没有发回任何值 在此处输入图像描述

这是我在日志中看到的错误:

我@thingsboard:/etc/tb-gateway/conf$ cat /var/log/tb-gateway/tb-gateway.log | grep 错误 2017-10-25 13:42:00,900 [main] 错误 otgateway.util.ConfigurationTools - 无法从 opc-config.json 加载类 org.thingsboard.gateway.extensions.opc.conf.OpcUaConfiguration 配置 2017-10- 25 13:42:00,902 [main] 错误 otgeopc.DefaultOpcUaService - OPC-UA 服务配置失败!2017-10-25 13:42:00,929 [main] 错误 osboot.SpringApplication - 应用程序启动失败

4

1 回答 1

3

目前不支持 OPC-DA。ThingsBoard 支持更新版本的协议 - OPC-UA。目前,我们的路线图中没有支持 OPC-DA 的计划,但是,由于这是开源项目,请随时做出贡献。

于 2017-10-26T08:37:32.050 回答