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¶ms={"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¶ms={"itemId":<long>}
Response
{
"type": <int> /* selected source */
}