template<class... Sensors>
DeviceManager class

Template parameters
Sensors the sensor types to manage

The device manager for handling necessary sensor peripherals.

Constructors, destructors, conversion operators

DeviceManager()
~DeviceManager()

Public functions

void hookSensors()
void logSensors()
void update()

Function documentation

template<class... Sensors>
DeviceManager<Sensors>::DeviceManager()

Default constructor that creates sensor instances.

template<class... Sensors>
DeviceManager<Sensors>::~DeviceManager()

Clear sensors from memory. This should only be called when the device is powering down or going to deep sleep.

template<class... Sensors>
void DeviceManager<Sensors>::hookSensors()

Registers hooks to the enabled sensors so when sensor data updates, it can be saved to the SD card or sent to a remote server. The remote server is the preferred location, but will fallback to the SD card so the data can be sent when a connection is available.

template<class... Sensors>
void DeviceManager<Sensors>::logSensors()

Logs sensor information over serial.

template<class... Sensors>
void DeviceManager<Sensors>::update()

Perform updates on all active devices.