For adding units into session use events/update_units:
svc=events/update_units¶ms={"mode":"add", "units":[ { "id":<long>, "detect": { "trips":<uint>, "lls":<uint>, "sensors":<uint>, "ignition":<uint>, "counters":<uint>, "speedings":<uint>, } }, ... ]}
To remove units from session use this signature:
svc=events/update_units¶ms={"mode":"remove", "units":[<long>]}
Param | Description |
---|---|
mode | mode: add, remove |
id | unit id |
detect | sensor types (what to monitor) |
trips | trips (see below) |
lls | FLS (see below) |
ignition | ignition sensor (see below) |
sensors | other sensors not mentioned above (see below) |
counters | counters |
To deal with “detect” elements (trips, lls, sensors, ignition) you may use sensor id or 0 (to add all sensors according to group stated). For trips it is always 0 to use (there is no trip sensor anyway).
To add all unit sensors please use:
"detect":{"*":0}
1. To add all ingition sensors and other sensors:
"detect":{"ignition":0,"sensors":0}
or
"detect":{"ignition,sensors":0}
2. To all FLS wit id=2 and other sensor with id=6:
"detect":{"lls":2,"sensors":6}
{ units:<uint> /* number of units added into session */ }