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:
- /var/lib/jenkins/workspace/beeeon-gateway-master/src/util/CSVSensorDataFormatter.h
- /var/lib/jenkins/workspace/beeeon-gateway-master/src/util/CSVSensorDataFormatter.cpp