Source of driver activity

Default source of driver activity is iButton. To set another activity source, use the command unit/update_activity_settings

svc=unit/update_activity_settings&params={"itemId":<long>,
					  "type":<int>}

Response

{ } /* success execution */

Parameters

Name Description
itemId unit ID
type source type

Parameter “type” values:

Value Description
0 None
1 Bindings
2 Tachograph

Getting the selected source

To get the selected source, use the command unit/get_activity_settings

svc=unit/get_activity_settings&params={"itemId":<long>}

Response

{
"type": <int>		/* selected source */ 
} 
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam