Compare commits

..

4 Commits

Author SHA1 Message Date
92b3c69b98 Decrease network task iteration delay
Position post measure first before get configuration
2025-07-26 18:23:04 +07:00
f4d518aa87 Fix agschedule anon function call order 2025-07-26 18:22:30 +07:00
831c844c24 Merge pull request #330 from airgradienthq/feat/post-ccid
Provide SIM card ICCID when performing ota update
2025-06-20 17:38:22 +07:00
060a7f6815 Provide iccid when checking if firmware update available 2025-06-20 01:08:46 +07:00
4 changed files with 6 additions and 6 deletions

View File

@ -575,7 +575,7 @@ void checkForFirmwareUpdate(void) {
if (networkOption == UseWifi) {
agOta = new AirgradientOTAWifi;
} else {
agOta = new AirgradientOTACellular(cellularCard);
agOta = new AirgradientOTACellular(cellularCard, agClient->getICCID());
}
// Indicate main task that firmware update is in progress
@ -1664,11 +1664,11 @@ void networkingTask(void *args) {
// Run scheduler
networkSignalCheckSchedule.run();
configSchedule.run();
transmissionSchedule.run();
configSchedule.run();
checkForUpdateSchedule.run();
delay(1000);
delay(50);
}
vTaskDelete(handleNetworkTask);

View File

@ -8,8 +8,8 @@ AgSchedule::~AgSchedule() {}
void AgSchedule::run(void) {
uint32_t ms = (uint32_t)(millis() - count);
if (ms >= period) {
handler();
count = millis();
handler();
}
}