|
Oyster Harvest Area Closure Analysis 0.1
Prediction and analysis of NSW oyster harvest area closures.
|
#include "Ubidots/devices.h"Functions | |
| CURLcode | Ubidots_ListDevices (Ubidots_Devices_TypeDef *devices) |
| List all ubidots devices. More... | |
| int8_t | Ubidots_DevicesToCSV (Ubidots_Devices_TypeDef *devices) |
| Write devices to csv file for caching. More... | |
| int8_t Ubidots_DevicesToCSV | ( | Ubidots_Devices_TypeDef * | devices | ) |
Write devices to csv file for caching.
Writes out device list from ubidots to a .csv file.
Device list containing names, ids and coordinates (if available) are written to a .csv file. The devices count is used to terminate this loop. Errors (1) are returned if directories cannot be created.
| devices | Devices struct to write to file. |
| CURLcode Ubidots_ListDevices | ( | Ubidots_Devices_TypeDef * | devices | ) |
List all ubidots devices.
Method to get a list of all devices on Ubidots.
Page size should be set high enough to get all devices (default 500).
| devices | Ubidots devices struct to populate. |