mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-28 16:07:16 +02:00
Only send first measures on boot if postDataToAirgradient is enabled
This commit is contained in:
@ -1043,9 +1043,11 @@ 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
|
||||||
|
if (configuration.isPostDataToAirGradient()) {
|
||||||
sendDataToAg();
|
sendDataToAg();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Skip fetch configuration if configuration control is set to "local" only
|
// Skip fetch configuration if configuration control is set to "local" only
|
||||||
if (configuration.getConfigurationControl() == ConfigurationControl::ConfigurationControlLocal) {
|
if (configuration.getConfigurationControl() == ConfigurationControl::ConfigurationControlLocal) {
|
||||||
|
Reference in New Issue
Block a user