mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-30 17:07:16 +02:00
Improve logging
This commit is contained in:
@ -533,7 +533,7 @@ static void sendDataToServer(void) {
|
|||||||
measurements.setBootCount(bootCount);
|
measurements.setBootCount(bootCount);
|
||||||
|
|
||||||
if (configuration.isOfflineMode() || !configuration.isPostDataToAirGradient()) {
|
if (configuration.isOfflineMode() || !configuration.isPostDataToAirGradient()) {
|
||||||
Serial.println("Ignore send data to server. Either mode is offline "
|
Serial.println("Skipping transmission of data to AG server. Either mode is offline "
|
||||||
"or post data to server disabled");
|
"or post data to server disabled");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -585,7 +585,7 @@ static void sendDataToServer(void) {
|
|||||||
measurements.setBootCount(bootCount);
|
measurements.setBootCount(bootCount);
|
||||||
|
|
||||||
if (configuration.isOfflineMode() || !configuration.isPostDataToAirGradient()) {
|
if (configuration.isOfflineMode() || !configuration.isPostDataToAirGradient()) {
|
||||||
Serial.println("Ignore send data to server. Either mode is offline "
|
Serial.println("Skipping transmission of data to AG server. Either mode is offline "
|
||||||
"or post data to server disabled");
|
"or post data to server disabled");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -626,7 +626,7 @@ static void sendDataToServer(void) {
|
|||||||
measurements.setBootCount(bootCount);
|
measurements.setBootCount(bootCount);
|
||||||
|
|
||||||
if (configuration.isOfflineMode() || !configuration.isPostDataToAirGradient()) {
|
if (configuration.isOfflineMode() || !configuration.isPostDataToAirGradient()) {
|
||||||
Serial.println("Ignore send data to server. Either mode is offline "
|
Serial.println("Skipping transmission of data to AG server. Either mode is offline "
|
||||||
"or post data to server disabled");
|
"or post data to server disabled");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -464,9 +464,9 @@ static bool sgp41Init(void) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void firmwareCheckForUpdate(void) {
|
static void checkForFirmwareUpdate(void) {
|
||||||
Serial.println();
|
Serial.println();
|
||||||
Serial.print("firmwareCheckForUpdate: ");
|
Serial.print("checkForFirmwareUpdate: ");
|
||||||
|
|
||||||
if (configuration.isOfflineMode() || configuration.isCloudConnectionDisabled()) {
|
if (configuration.isOfflineMode() || configuration.isCloudConnectionDisabled()) {
|
||||||
Serial.println("mode is offline or cloud connection disabled, ignored");
|
Serial.println("mode is offline or cloud connection disabled, ignored");
|
||||||
@ -870,7 +870,7 @@ void initializeNetwork() {
|
|||||||
// Initialize api client
|
// Initialize api client
|
||||||
apiClient.begin();
|
apiClient.begin();
|
||||||
|
|
||||||
// Check and process if AirGradient server is reachable
|
// Send data for the first time to airgradient at boot
|
||||||
sendDataToAg();
|
sendDataToAg();
|
||||||
|
|
||||||
// OTA check
|
// OTA check
|
||||||
@ -1188,7 +1188,7 @@ static void sendDataToServer(void) {
|
|||||||
|
|
||||||
if (configuration.isOfflineMode() || configuration.isCloudConnectionDisabled() ||
|
if (configuration.isOfflineMode() || configuration.isCloudConnectionDisabled() ||
|
||||||
!configuration.isPostDataToAirGradient()) {
|
!configuration.isPostDataToAirGradient()) {
|
||||||
Serial.println("Ignore send data to server. Either mode is offline or cloud connection is "
|
Serial.println("Skipping transmission of data to AG server. Either mode is offline or cloud connection is "
|
||||||
"disabled or post data to server disabled");
|
"disabled or post data to server disabled");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user