Sensor Communication Library  0.4.0
Public Member Functions | Public Attributes | List of all members
SensorCommunicationLib Class Reference

Public Member Functions

 SensorCommunicationLib (int NumberOfSensors=10, int param_ms=2000, int param_samples=100)
 
void processSensors (void(*getSensorData)())
 

Public Attributes

float Sensors [MAXNUMOFSENSORS]
 

Detailed Description

Definition at line 15 of file SensorCommunicationLib.h.

Constructor & Destructor Documentation

◆ SensorCommunicationLib()

SensorCommunicationLib::SensorCommunicationLib ( int  NumberOfSensors = 10,
int  param_ms = 2000,
int  param_samples = 100 
)

This method is the constructor of the SensorCommunicationLib

Author
Antonio Cafiero
Parameters
NumberOfSensorsThe number of sensors value to transmitt as a stream of csv.
param_msThe number of m sec interval between sensor value transmissions.
param_samplesThe number of samples before transmission on wich the average is calculated.
Date
11/10/2019

Definition at line 35 of file SensorCommunicationLib.cpp.

Member Function Documentation

◆ processSensors()

void SensorCommunicationLib::processSensors ( void(*)()  getSensorData)

This method must be called into the loop()

Author
Antonio Cafiero
Parameters
getSensorDataThe pointer of the callback routine fo sensors data reading.
Date
11/10/2019

Definition at line 71 of file SensorCommunicationLib.cpp.


The documentation for this class was generated from the following files: