mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-16 18:22:09 +02:00
Always increment bootcount when send measurements data is scheduled (#255)
This commit is contained in:
@ -534,6 +534,9 @@ static void updatePm(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void sendDataToServer(void) {
|
static void sendDataToServer(void) {
|
||||||
|
/** Increment bootcount when send measurements data is scheduled */
|
||||||
|
measurements.bootCount++;
|
||||||
|
|
||||||
/** Ignore send data to server if postToAirGradient disabled */
|
/** Ignore send data to server if postToAirGradient disabled */
|
||||||
if (configuration.isPostDataToAirGradient() == false ||
|
if (configuration.isPostDataToAirGradient() == false ||
|
||||||
configuration.isOfflineMode()) {
|
configuration.isOfflineMode()) {
|
||||||
@ -548,7 +551,6 @@ static void sendDataToServer(void) {
|
|||||||
"Online mode and isPostToAirGradient = true: watchdog reset");
|
"Online mode and isPostToAirGradient = true: watchdog reset");
|
||||||
Serial.println();
|
Serial.println();
|
||||||
}
|
}
|
||||||
measurements.bootCount++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tempHumUpdate(void) {
|
static void tempHumUpdate(void) {
|
||||||
|
@ -586,6 +586,9 @@ static void updatePm(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void sendDataToServer(void) {
|
static void sendDataToServer(void) {
|
||||||
|
/** Increment bootcount when send measurements data is scheduled */
|
||||||
|
measurements.bootCount++;
|
||||||
|
|
||||||
/** Ignore send data to server if postToAirGradient disabled */
|
/** Ignore send data to server if postToAirGradient disabled */
|
||||||
if (configuration.isPostDataToAirGradient() == false ||
|
if (configuration.isPostDataToAirGradient() == false ||
|
||||||
configuration.isOfflineMode()) {
|
configuration.isOfflineMode()) {
|
||||||
@ -600,7 +603,6 @@ static void sendDataToServer(void) {
|
|||||||
"Online mode and isPostToAirGradient = true: watchdog reset");
|
"Online mode and isPostToAirGradient = true: watchdog reset");
|
||||||
Serial.println();
|
Serial.println();
|
||||||
}
|
}
|
||||||
measurements.bootCount++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tempHumUpdate(void) {
|
static void tempHumUpdate(void) {
|
||||||
|
@ -627,6 +627,9 @@ static void updatePm(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void sendDataToServer(void) {
|
static void sendDataToServer(void) {
|
||||||
|
/** Increment bootcount when send measurements data is scheduled */
|
||||||
|
measurements.bootCount++;
|
||||||
|
|
||||||
/** Ignore send data to server if postToAirGradient disabled */
|
/** Ignore send data to server if postToAirGradient disabled */
|
||||||
if (configuration.isPostDataToAirGradient() == false ||
|
if (configuration.isPostDataToAirGradient() == false ||
|
||||||
configuration.isOfflineMode()) {
|
configuration.isOfflineMode()) {
|
||||||
@ -641,7 +644,6 @@ static void sendDataToServer(void) {
|
|||||||
"Online mode and isPostToAirGradient = true: watchdog reset");
|
"Online mode and isPostToAirGradient = true: watchdog reset");
|
||||||
Serial.println();
|
Serial.println();
|
||||||
}
|
}
|
||||||
measurements.bootCount++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tempHumUpdate(void) {
|
static void tempHumUpdate(void) {
|
||||||
|
@ -1220,6 +1220,9 @@ static void updatePm(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void sendDataToServer(void) {
|
static void sendDataToServer(void) {
|
||||||
|
/** Increment bootcount when send measurements data is scheduled */
|
||||||
|
measurements.bootCount++;
|
||||||
|
|
||||||
/** Ignore send data to server if postToAirGradient disabled */
|
/** Ignore send data to server if postToAirGradient disabled */
|
||||||
if (configuration.isPostDataToAirGradient() == false || configuration.isOfflineMode()) {
|
if (configuration.isPostDataToAirGradient() == false || configuration.isOfflineMode()) {
|
||||||
return;
|
return;
|
||||||
@ -1233,7 +1236,6 @@ static void sendDataToServer(void) {
|
|||||||
"Online mode and isPostToAirGradient = true: watchdog reset");
|
"Online mode and isPostToAirGradient = true: watchdog reset");
|
||||||
Serial.println();
|
Serial.println();
|
||||||
}
|
}
|
||||||
measurements.bootCount++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tempHumUpdate(void) {
|
static void tempHumUpdate(void) {
|
||||||
|
Reference in New Issue
Block a user