Update trip detection settings

To update trip detection settings, use the command unit/update_trip_detector:

svc=unit/update_trip_detector&params={"itemId":<long>,
				      "type":<ubyte>,
				      "gpsCorrection":<bool>,
				      "minSat":<uint>,
				      "minMovingSpeed":<uint>,
				      "minStayTime":<uint>,
				      "maxMessagesDistance":<uint>,
				      "minTripTime":<uint>,
				      "minTripDistance":<uint>}

Parameters

Name Description
itemId unit ID
type type of movement detection (see Trip detection)
gpsCorrection allow GPS correction: 0 - no, 1 - yes
minSat min satellites count
minMovingSpeed min moving speed, km/h
minStayTime min parking time, seconds
maxMessagesDistance max distance between messages, meters
minTripTime min trip time, seconds
minTripDistance min trip distance, meters

Response

{}	/* empty object if execution successful, if not - error code */
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2021 Gurtam