ThingsBoard OPC-DA

ThingsBoard OPC-DA

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}"}
>           ]
>         }
>       ]
>     }   ] }

我在配置中尝试了几个不同的输入,但网关没有发回任何值

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

me@thingsboard:/etc/tb-gateway/conf$ cat /var/log/tb-gateway/tb-gateway.log | grep ERROR 2017-10-25 13:42:00,900 [main] ERROR o.t.gateway.util.ConfigurationTools - Failed to load class org.thingsboard.gateway.extensions.opc.conf.OpcUaConfiguration configuration from opc-config.json 2017-10-25 13:42:00,902 [main] ERROR o.t.g.e.opc.DefaultOpcUaService - OPC-UA service configuration failed! 2017-10-25 13:42:00,929 [main] ERROR o.s.boot.SpringApplication - Application startup failed

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