summaryrefslogtreecommitdiff
path: root/mappers
diff options
context:
space:
mode:
authorKubeEdge Bot <48982446+kubeedge-bot@users.noreply.github.com>2020-09-21 09:59:28 +0800
committerGitHub <noreply@github.com>2020-09-21 09:59:28 +0800
commit5aff83ca07885e1746e067e96b95fe4e63b3d0ba (patch)
tree917eff5cda8a450c0e8cc08aa726862dfdd4310f /mappers
parentMerge pull request #2169 from GsssC/fixDiffLicense (diff)
parentSolve modubs_mapper configuration error (diff)
downloadkubeedge-5aff83ca07885e1746e067e96b95fe4e63b3d0ba.tar.gz
Merge pull request #2174 from jianping0222/master
documentation:Solve modubs_mapper configuration error
Diffstat (limited to 'mappers')
-rw-r--r--mappers/modbus_mapper/dpl/deviceProfile.json9
1 files changed, 5 insertions, 4 deletions
diff --git a/mappers/modbus_mapper/dpl/deviceProfile.json b/mappers/modbus_mapper/dpl/deviceProfile.json
index 78401c0b7..843024f1f 100644
--- a/mappers/modbus_mapper/dpl/deviceProfile.json
+++ b/mappers/modbus_mapper/dpl/deviceProfile.json
@@ -10,7 +10,7 @@
"name": "temperature",
"minimum": 0,
"maximum": 100,
- "datatype": "int",
+ "dataType": "int",
"accessMode": "rw"
}],
"name": "modbus-mock-model",
@@ -23,15 +23,16 @@
"isRegisterSwap": true,
"register": "HoldingRegister",
"offset": 1,
- "isSwap": false
+ "isSwap": false,
+ "limit": 1
},
"propertyName": "temperature",
"modelName": "modbus-mock-model",
- "protocol": "modbus-tcp",
+ "protocol": "modbus",
"name": "temperature"
}],
"protocols": [{
- "protocolConfig": {
+ "protocol_config": {
"ip": "127.0.0.1",
"port": 5028,
"slaveID": 1