Offset value assignment in default auto-generated JSON (from v4.9.x)
Last updated
Register type discreteInputs fixed offset value is 10000 and for inputRegisters – 30000.
For discreteInputs sensor object starts with an offset 0 and for each next paired sensor offset value is increased by the step 20.
For inputRegisters the first object is baseStation with an offset 0. Offset for the first paired sensor will be 20 and for each next paired sensor the offset increment is 20.
Common measurement objects for sensor objects nested in discreteInputs (fixed sequence for all sensor objects):
batteryAlarm (offset: 0)
rssiAlarm (offset: 1)
threshold alarms for sensor specific measurements (sorted by name in alphabetical order):
min threshold (offset: +1)
max threshold (offset: +1)
For inputRegisters the initial nested object is baseStation with offset 0 having measurement rxMsgCounter with offset 0 which makes the address for this measurement 30000 (30000 + 0 + 0).
Common measurement objects for sensor objects nested in inputRegisters (fixed sequence for all sensor objects):
uid (offset: 0)
battery (offset: 2)
rssi (offset: 3)
time (offset: 5)
sensor specific measurements (sorted by name in alphabetical order)
Last updated