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 - 应用程序启动失败