#include <unistd.h>
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include "omapi.h"
Go to the source code of this file.
Data Structures | |
struct | deviceInfo_tag |
Macros | |
#define | Sleep(millis) sleep((millis) / 1000) |
#define | ID_NAND |
Typedefs | |
typedef struct deviceInfo_tag | deviceInfo_t |
Enumerations | |
enum | devicestatus_t { DEVICE_DISCONNECTED = 0, DEVICE_CONNECTED, DEVICE_ERROR, DEVICE_DONE } |
Functions | |
int | record_setup (int deviceId) |
int | record (const char *outfile) |
int | record_main (int argc, char *argv[]) |
Variables | |
deviceInfo_t * | deviceInfo = NULL |
int | startDays = 1 |
int | startHour = 0 |
int | durationDays = 8 |
int | endHour = 0 |
int | minBatt = 85 |
int | debugMode = 0 |
Open Movement API Example: Batch clear and set devices to record.
A command-line tool to batch setup all connected devices to record, time synchronization. Session identifiers is set to the device id. The pairing of session identifiers and their assigned device identifiers is written to an output file (if specified). The time is synchronized with the PC at setup time.
Definition in file record.c.
typedef struct deviceInfo_tag deviceInfo_t |
enum devicestatus_t |
deviceInfo_t* deviceInfo = NULL |