10 #define PORT_SENSORS 22471
12 #define PORT_BAT 22473
14 #define PORT_GPS 22475
18 #define PORT_NFC 22800
20 #define FREQ_SENSORS 100000 // frequency sending data sensors in micro seconds
21 #define FREQ_BAT 2 * 1000000 // frequency sending data battery in micro seconds
22 #define FREQ_GPS 2 * 1000000 // frequency sending data GPS in micro seconds
23 #define FREQ_DEFAULT 1 * 1000000 // frequency default in micro seconds
59 const char* amqp_host);
char sensor[BUF_SIZE]
Sensor name.
sensor_params * ParamEventsWorker(const char *vmip, const char *vmid, const char *sensor_name, const char *amqp_host)
Creates the data structure for sensor threads.
Parameter for sensor threads.
#define BUF_SIZE
Small, fixed-size buffers.
struct s_sensor_params sensor_params
Parameter for sensor threads.
char queue[BUF_SIZE]
Queue name.
char exchange[BUF_SIZE]
Exchange name.
void start_sensor(sensor_params *params, pthread_t *thread)
Start the sensor listener thread.
int32_t frequency
Sensor throttling.
Define common buffer sizes.
const char * amqp_host
AMQP host.
int8_t flagRecording
Grabber-specific ??