mirror of
https://github.com/Lemonochrme/clover.git
synced 2025-06-09 01:00:49 +02:00
21 lines
No EOL
341 B
C++
21 lines
No EOL
341 B
C++
#ifndef DATAHANDLER_HPP
|
|
#define DATAHANDLER_HPP
|
|
|
|
#include <ArduinoJson.h>
|
|
|
|
class DataHandler {
|
|
public:
|
|
DataHandler();
|
|
String getJsonData();
|
|
|
|
void updateTemperatureData(float temperature);
|
|
void updateHumidityData(float humidity);
|
|
|
|
private:
|
|
float temperature;
|
|
float humidity;
|
|
|
|
String buildJson();
|
|
};
|
|
|
|
#endif |