BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions
BeeeOn::CSVSensorDataFormatter Class Reference
Inheritance diagram for BeeeOn::CSVSensorDataFormatter:
BeeeOn::SensorDataFormatter

Public Member Functions

std::string format (const SensorData &data) override
 
void setSeparator (const std::string &separator)
 
const std::string separator () const
 separator More...
 

Additional Inherited Members

- Public Types inherited from BeeeOn::SensorDataFormatter
typedef Poco::SharedPtr
< SensorDataFormatter
Ptr
 

Member Function Documentation

string CSVSensorDataFormatter::format ( const SensorData data)
overridevirtual

Convert data from struct SensorData to csv format

Returns
type;timestamp;deviceID;moduleID;value;

Example output:

sensor;1488879656;0x499602d2;5;4.200000;

Implements BeeeOn::SensorDataFormatter.

const std::string BeeeOn::CSVSensorDataFormatter::separator ( ) const
inline

separator

Returns
actual separator for csv
void BeeeOn::CSVSensorDataFormatter::setSeparator ( const std::string &  separator)
inline

Optional custom separator


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