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