Default source of driver activity is iButton. To set another activity source, use the command unit/update_activity_settings
svc=unit/update_activity_settings¶ms={"itemId":<long>, "type":<int>}
{ } /* success execution */
Name | Description |
---|---|
itemId | unit ID |
type | source type |
Parameter “type” values:
Value | Description |
---|---|
0 | None |
1 | Bindings |
2 | Tachograph |
To get the selected source, use the command unit/get_activity_settings
svc=unit/get_activity_settings¶ms={"itemId":<long>}
{ "type": <int> /* selected source */ }