summaryrefslogtreecommitdiff
path: root/mappers
diff options
context:
space:
mode:
authorjianping0222 <32118776+jianping0222@users.noreply.github.com>2020-09-18 14:07:41 +0800
committerGitHub <noreply@github.com>2020-09-18 14:07:41 +0800
commit3f58b892fda167b083ded1ae4b854efd816c1e4a (patch)
treea52533b433907afd9eec388de522396c8fb6c0e8 /mappers
parentMerge pull request #1053 from jwzl/master (diff)
downloadkubeedge-3f58b892fda167b083ded1ae4b854efd816c1e4a.tar.gz
Solve modubs_mapper configuration error
The default configuration does not correspond to the field values, some field names are also wrong, and fields are missing, which causes mobus_mapper to fail to start normally
Diffstat (limited to 'mappers')
-rw-r--r--mappers/modbus_mapper/dpl/deviceProfile.json11
1 files changed, 6 insertions, 5 deletions
diff --git a/mappers/modbus_mapper/dpl/deviceProfile.json b/mappers/modbus_mapper/dpl/deviceProfile.json
index 00082d319..843024f1f 100644
--- a/mappers/modbus_mapper/dpl/deviceProfile.json
+++ b/mappers/modbus_mapper/dpl/deviceProfile.json
@@ -4,13 +4,13 @@
"name": "modbus-mock-instance-01",
"model": "modbus-mock-model",
"protocol": "modbus-tcp-01"
- }],
+ }],
"deviceModels": [{
"properties": [{
"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