Only send first measures on boot if postDataToAirgradient is enabled

This commit is contained in:
samuelbles07
2025-06-10 01:10:14 +07:00
parent ddb3dba131
commit b09b753339

View File

@ -1043,8 +1043,10 @@ void initializeNetwork() {
return; return;
} }
// Send data for the first time to AG server at boot // Send data for the first time to AG server at boot only if postDataToAirgradient is enabled
sendDataToAg(); if (configuration.isPostDataToAirGradient()) {
sendDataToAg();
}
} }
// Skip fetch configuration if configuration control is set to "local" only // Skip fetch configuration if configuration control is set to "local" only