forked from airgradienthq/arduino
Boot count using setter and getter
This commit is contained in:
+7
-3
@@ -601,8 +601,8 @@ String Measurements::toString(bool localServer, AgFirmwareMode fwMode, int rssi,
|
||||
}
|
||||
}
|
||||
|
||||
root["boot"] = bootCount;
|
||||
root["bootCount"] = bootCount;
|
||||
root["boot"] = _bootCount;
|
||||
root["bootCount"] = _bootCount;
|
||||
root["wifi"] = rssi;
|
||||
|
||||
if (localServer) {
|
||||
@@ -1065,4 +1065,8 @@ JSONVar Measurements::buildPMS(AirGradient &ag, int ch, bool allCh, bool withTem
|
||||
return pms;
|
||||
}
|
||||
|
||||
void Measurements::setDebug(bool debug) { _debug = debug; }
|
||||
void Measurements::setDebug(bool debug) { _debug = debug; }
|
||||
|
||||
int Measurements::bootCount() { return _bootCount; }
|
||||
|
||||
void Measurements::setBootCount(int bootCount) { _bootCount = bootCount; }
|
||||
Reference in New Issue
Block a user