Get value from each data type

This commit is contained in:
samuelbles07 committed 2024-10-14 01:22:44 +07:00
1 parent 6925b1ac9a
commit 751d4e8380
2 files changed
+101 -2

No files matched your search

+20
View File
@@ -107,6 +107,26 @@ public:
*/
bool updateValue(AgValueType type, float val, int ch = 1);
/**
* @brief Get the target measurement type value
*
* @param type measurement type that will be retrieve
* @param average true if expect last average value, false if expect last update value
* @param ch target type value channel
* @return int measurement type value
*/
int getValue(AgValueType type, bool average = true, int ch = 1);
/**
* @brief Get the target measurement type value
*
* @param type measurement type that will be retrieve
* @param average true if expect last average value, false if expect last update value
* @param ch target type value channel
* @return float measurement type value
*/
float getValueFloat(AgValueType type, bool average = true, int ch = 1);
float Temperature;
int Humidity;
int CO2;