首页 文章

ThingsBoard OPC-DA

提问于
浏览
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}"}
>           ]
>         }
>       ]
>     }   ] }

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

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

me @ 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] ERROR otgeopc.DefaultOpcUaService - OPC-UA服务配置失败! 2017-10-25 13:42:00,929 [main] ERROR o.s.boot.SpringApplication - 应用程序启动失败

1 回答

  • 3

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

相关问题