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错误2017-10-25 13:42:00,900 [main] ERROR o.t.gateway.util.ConfigurationTools - 失败 加载类 org.thingsboard.gateway.extensions.opc.conf.OpcUaConfiguration 来自opc-config.json的配置2017-10-25 13:42:00,902 [主要] ERROR o.t.g.e.opc.DefaultOpcUaService - OPC-UA服务配置 失败! 2017-10-25 13:42:00,929 [主要]错误 o.s.boot.SpringApplication - 应用程序启动失败
答案 0 :(得分:3)
目前不支持OPC-DA。 ThingsBoard支持更新版本的协议 - OPC-UA。目前还没有计划在我们的路线图中支持OPC-DA,但是,由于这是一个开源项目,请随时做出贡献。