-
Notifications
You must be signed in to change notification settings - Fork 793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The data in opc-ua server is not collected. The thingsboard panel does not display telemetry data. #71
Comments
|
@mp-loki |
Can you please try to change deviceNodePattern to |
@mp-loki |
So may I assume this issue resolved? |
yes |
@BIT-masterpy 你好 ,我在解析的时候和你遇到相同的问题 能否告知一下您最后的配置文件的格式。 |
opc-config.json 这个文件 |
Hello, I use the third-party opc-ua server (milo) and tb-gateway and thingsboard for the test of data collection.Milo and TB -gateway were successfully connected, and tb-gateway and thingsboard were successful, but there was no telemetry data.The log files of the three are as follows:
@mp-loki @ashvayka
opc-server(milo).txt
tb-gateway.txt
thingsboard.txt
tb-gateway.yml:
gateways:
tenants:
-
label: "Tenant"
reporting:
interval: 60000
persistence:
type: file
path: storage
bufferSize: 1000
connection:
host: localhost
port: 1882
retryInterval: 3000
maxInFlight: 1000
security:
accessToken: "4cq1eFC25o6ZpSLkyXec"
remoteConfiguration: false
extensions:
-
id: "opc-ua"
type: "OPC UA"
extensionConfiguration: opc-config.json
opc-config.json:
{
"servers": [
{
"applicationName": "Thingsboard OPC-UA client",
"applicationUri": "",
"host": "192.168.56.1",
"port": 12686,
"scanPeriodInSeconds": 10,
"timeoutInMillis": 5000,
"security": "None",
"identity": {
"type": "anonymous"
},
"keystore": {
"type": "PKCS12",
"location": "example.pfx",
"fileContent": "",
"password": "secret",
"alias": "gateway",
"keyPassword": "secret"
},
"mapping": [
{
"deviceNodePattern": "Objects\.HelloWorld\.Dynamic",
"deviceNamePattern": "Device1",
"attributes":[
{
"key": "Boolean val",
"type": "boolean",
"value":"${Boolean}"
}
],
"timeseries":[
{
"key": "Double Val",
"type":"double",
"value":"${Double}"
}
]
}
]
}
]
}
Milo address space:
The text was updated successfully, but these errors were encountered: