1"job": "leader"
2},
3"allowRedirects": true,
4"timeout": 0.5,
5"scanPeriod": 5,
6"converter": {
7  "type": "json",
8  "deviceNameJsonExpression": "SD8500",
9  "deviceTypeJsonExpression": "SD",
10  "attributes": [
11    {
12      "key": "serialNumber",
13      "type": "string",
14      "value": "${serial}"
15    }
16  ],
17  "telemetry": [
18    {
19      "key": "Maintainer",
20      "type": "string",
21      "value": "${Developer}"
22    }
23  ]
24}
25},
26{
27"url": "get_info",
28"httpMethod": "GET",
29"httpHeaders": {
30  "ACCEPT": "application/json"
31},
32"allowRedirects": true,
33"timeout": 0.5,
34"scanPeriod": 100,
35"converter": {
36  "type": "custom",
37  "deviceNameJsonExpression": "SD8500",
38  "deviceTypeJsonExpression": "SD",
39  "extension": "CustomRequestUplinkConverter",
40  "extension-config": [
41    {
42      "key": "Totaliser",
43      "type": "float",
44      "fromByte": 0,
45      "toByte": 4,
46      "byteorder": "big",
47      "signed": true,
48      "multiplier": 1
49    },
50    {
51      "key": "Flow",
52      "type": "int",
53      "fromByte": 4,
54      "toByte": 6,
55      "byteorder": "big",
56      "signed": true,
57      "multiplier": 0.01
58    },
59    {
60      "key": "Temperature",
61      "type": "int",
62      "fromByte": 8,
63      "toByte": 10,
64      "byteorder": "big",
65      "signed": true,
66      "multiplier": 0.01
67    },
68    {
69      "key": "Pressure",
70      "type": "int",
71      "fromByte": 12,
72      "toByte": 14,
73      "byteorder": "big",
74      "signed": true,
75      "multiplier": 0.01
76    },
77    {
78      "key": "deviceStatus",
79      "type": "int",
80      "byteAddress": 15,
81      "fromBit": 4,
82      "toBit": 8,
83      "byteorder": "big",
84      "signed": false
85    },
86    {
87      "key": "OUT2",
88      "type": "int",
89      "byteAddress": 15,
90      "fromBit": 1,
91      "toBit": 2,
92      "byteorder": "big"
93    },
94    {
95      "key": "OUT1",
96      "type": "int",
97      "byteAddress": 15,
98      "fromBit": 0,
99      "toBit": 1,
100      "byteorder": "big"
101    }
102  ]
103}
104}
105],
106"attributeUpdates": [
107{
108  "httpMethod": "POST",
109  "httpHeaders": {
110    "CONTENT-TYPE": "application/json"
111  },
112  "timeout": 0.5,
113  "tries": 3,
114  "allowRedirects": true,
115  "deviceNameFilter": "SD.*",
116  "attributeFilter": "send_data",
117  "requestUrlExpression": "sensor/${deviceName}/${attributeKey}",
118  "valueExpression": "{\"${attributeKey}\":\"${attributeValue}\"}"
119}
120],
121"serverSideRpc": [
122{
123"deviceNameFilter": ".*",
124"methodFilter": "echo",
125"requestUrlExpression": "sensor/${deviceName}/request/${methodName}/${requestId}",
126"responseTimeout": 1,
127"httpMethod": "GET",
128"valueExpression": "${params}",
129"timeout": 0.5,
130"tries": 3,
131"httpHeaders": {
132  "Content-Type": "application/json"
133}
134},
135{
136"deviceNameFilter": ".*",
137"methodFilter": "no-reply",
138"requestUrlExpression": "sensor/${deviceName}/request/${methodName}/${requestId}",
139"httpMethod": "POST",
140"valueExpression": "${params}",
141"httpHeaders": {
142  "Content-Type": "application/json"
143}
144}
145]
146}