Recording
Used to control camera's start/stop recording behaviour and to retrieve recording status from the camera. Depending on the mode in which camera is in, record will either capture regular video time lapse, slow motion or start recording photos at predefined rate.
POST /api/<versionNumber>/record
Format:
http://<baseURL>/api/<versionNumber>/record
Example:
http://192.168.1.101/api/2/record
Parameters
Parameter | Description | Req'd? | Type / Values |
---|---|---|---|
baseURL | Fixed address, Bandit acts like an access point with this addres. TomTom Bandit's WiFi has to be turned on. | Yes | 192.168.1.101 |
versionNumber | Service version number. The current value is 2. | Yes | 2 |
JSON Parameters:
Parameters will be passed through request body.
Content type should be 'application/json' and supported attribute is:
Attribute | Description | Req'd? | Type |
recording_active | true - starts recording false - stops recording |
Yes | boolean |
Description:
Starts or stops recording process on the camera based on current camera mode settings (video, picture...).
Response codes:
Code | Description |
200 | OK |
400 | Bad Request (wrong or unrecognised parameters) |
500 | Server Error (request can't be processed) |
Response:
None
Example request (starts recording):
POST http://192.168.1.101/api/2/record
Content type: application/json
Value in request body:
{ "recording_active":true }