github.com/jingruilea/kubeedge@v1.2.0-beta.0.0.20200410162146-4bb8902b3879/mappers/modbus_mapper/dpl/deviceProfile.json (about) 1 { 2 "deviceInstances": [{ 3 "id": "f81e1dce-8152-4f76-b673-d6728b46e395", 4 "name": "modbus-mock-instance-01", 5 "model": "modbus-mock-model", 6 "protocol": "modbus-tcp-01" 7 }], 8 "deviceModels": [{ 9 "properties": [{ 10 "name": "temperature", 11 "minimum": 0, 12 "maximum": 100, 13 "datatype": "int", 14 "accessMode": "rw" 15 }], 16 "name": "modbus-mock-model", 17 "description": null 18 }], 19 "propertyVisitors": [{ 20 "visitorConfig": { 21 "index": 0, 22 "scale": 1.0, 23 "isRegisterSwap": true, 24 "register": "HoldingRegister", 25 "offset": 1, 26 "isSwap": false 27 }, 28 "propertyName": "temperature", 29 "modelName": "modbus-mock-model", 30 "protocol": "modbus-tcp", 31 "name": "temperature" 32 }], 33 "protocols": [{ 34 "protocolConfig": { 35 "ip": "127.0.0.1", 36 "port": 5028, 37 "slaveID": 1 38 }, 39 "protocol": "modbus-tcp", 40 "name": "modbus-tcp-01" 41 }] 42 }