Skip to content

Fully disable cloud connection to airgradient server option #278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Feb 6, 2025
Merged
2 changes: 1 addition & 1 deletion examples/BASIC/BASIC.ino
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ static void sendDataToServer(void) {
measurements.setBootCount(bootCount);

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");
return;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/DiyProIndoorV3_3/DiyProIndoorV3_3.ino
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ static void sendDataToServer(void) {
measurements.setBootCount(bootCount);

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");
return;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/DiyProIndoorV4_2/DiyProIndoorV4_2.ino
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ static void sendDataToServer(void) {
measurements.setBootCount(bootCount);

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");
return;
}
Expand Down
8 changes: 4 additions & 4 deletions examples/OneOpenAir/OneOpenAir.ino
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,9 @@ static bool sgp41Init(void) {
return false;
}

static void firmwareCheckForUpdate(void) {
static void checkForFirmwareUpdate(void) {
Serial.println();
Serial.print("firmwareCheckForUpdate: ");
Serial.print("checkForFirmwareUpdate: ");

if (configuration.isOfflineMode() || configuration.isCloudConnectionDisabled()) {
Serial.println("mode is offline or cloud connection disabled, ignored");
Expand Down Expand Up @@ -870,7 +870,7 @@ void initializeNetwork() {
// Initialize api client
apiClient.begin();

// Check and process if AirGradient server is reachable
// Send data for the first time to airgradient at boot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to AG server
?

sendDataToAg();

// OTA check
Expand Down Expand Up @@ -1188,7 +1188,7 @@ static void sendDataToServer(void) {

if (configuration.isOfflineMode() || configuration.isCloudConnectionDisabled() ||
!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");
return;
}
Expand Down
Loading