Changes

Jump to: navigation, search
no edit summary
illustrates how to run [https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/ ''ThingsBoard IoT Gateway'' software] on the
 
 
 
<syntaxhighlight lang="json">
armbian@sbcspg:~$ cat /etc/thingsboard-gateway/config/modbus.json
{
"master": {
"slaves": [
{
"host": "192.168.30.42",
"port": 502,
"type": "tcp",
"method": "socket",
"timeout": 35,
"byteOrder": "BIG",
"retries": true,
"retryOnEmpty": true,
"retryOnInvalid": true,
"pollPeriod": 5000,
"unitId": 1,
"deviceName": "UR5",
"sendDataOnlyOnChange": true,
"connectAttemptTimeMs": 5000,
"connectAttemptCount": 5,
"waitAfterFailedAttemptsMs": 300000,
"timeseries": [
{
"tag": "base_joint_temperature_deg_C",
"type": "16int",
"functionCode": 3,
"objectsCount": 1,
"address": 300
},
{
"tag": "shoulder_joint_temperature_deg_C",
"type": "16int",
"functionCode": 3,
"objectsCount": 1,
"address": 301
},
{
"tag": "base_joint_current_mA",
"type": "16int",
"functionCode": 3,
"objectsCount": 1,
"address": 290
},
{
"tag": "shoulder_joint_current_mA",
"type": "16int",
"functionCode": 3,
"objectsCount": 1,
"address": 291
},
{
"tag": "elbow_joint_current_mA",
"type": "16int",
"functionCode": 3,
"objectsCount": 1,
"address": 292
},
{
"tag": "wrist1_joint_current_mA",
"type": "16int",
"functionCode": 3,
"objectsCount": 1,
"address": 293
},
{
"tag": "wrist2_joint_current_mA",
"type": "16int",
"functionCode": 3,
"objectsCount": 1,
"address": 294
},
{
"tag": "wrist3_joint_current_mA",
"type": "16int",
"functionCode": 3,
"objectsCount": 1,
"address": 295
}
]
}
]
}
}
</syntaxhighlight>
4,650
edits

Navigation menu