From 3f58b892fda167b083ded1ae4b854efd816c1e4a Mon Sep 17 00:00:00 2001 From: jianping0222 <32118776+jianping0222@users.noreply.github.com> Date: Fri, 18 Sep 2020 14:07:41 +0800 Subject: 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 --- mappers/modbus_mapper/dpl/deviceProfile.json | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'mappers') 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 -- cgit v1.2.3