Oyster Harvest Area Closure Analysis 0.1
Prediction and analysis of NSW oyster harvest area closures.
Loading...
Searching...
No Matches
devices.h
Go to the documentation of this file.
1#ifndef HA_CLOSURE_ANALYSIS_DEVICES_H
2#define HA_CLOSURE_ANALYSIS_DEVICES_H
3
4#include <string.h>
5#include <math.h>
6#include <curl/curl.h>
7#include <cjson/cJSON.h>
8#include <log.h>
9
11#include "http.h"
12#include "utils.h"
13
15#define UBIDOTS_MAX_NUMBER_DEVICES 300
16
18#define UBIDOTS_MAX_INFO_LENGTH 100
19
21typedef struct{
22 int16_t count;
25 double latitudes[UBIDOTS_MAX_NUMBER_DEVICES];
26 double longitudes[UBIDOTS_MAX_NUMBER_DEVICES];
28
31
34
35#endif // HA_CLOSURE_ANALYSIS_DEVICES_H
36
#define UBIDOTS_MAX_INFO_LENGTH
Maximum name length for devices.
Definition: devices.h:18
#define UBIDOTS_MAX_NUMBER_DEVICES
Maximum number of devices in buffer.
Definition: devices.h:15
CURLcode Ubidots_ListDevices(Ubidots_Devices_TypeDef *devices)
List all ubidots devices.
Definition: devices.c:19
int8_t Ubidots_DevicesToCSV(Ubidots_Devices_TypeDef *devices)
Write devices to csv file for caching.
Definition: devices.c:140
TODO turn this into a single device then have a list of devices struct.
Definition: devices.h:21
int16_t count
Definition: devices.h:22