Command disabled: backlink

Add/remove units from session

For adding units into session use events/update_units:

svc=events/update_units&params={"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&params={"mode":"remove",
				"units":[<long>]}

Parameters

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}

Examples

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}

Response

{
    units:<uint>        /* number of units added into session */
}
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam