mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-12 03:04:27 +05:00
refactor: memory optimization for esp8266
This commit is contained in:
@@ -61,16 +61,26 @@ protected:
|
||||
void loop() {
|
||||
if (isPollingDallasSensors()) {
|
||||
pollingDallasSensors(false);
|
||||
this->yield();
|
||||
}
|
||||
|
||||
if (millis() - this->globalLastPollingTime > this->globalPollingInterval) {
|
||||
makeDallasInstances();
|
||||
cleanDallasInstances();
|
||||
makeDallasInstances();
|
||||
this->yield();
|
||||
|
||||
searchDallasSensors();
|
||||
fillingAddressesDallasSensors();
|
||||
this->yield();
|
||||
|
||||
pollingDallasSensors();
|
||||
this->yield();
|
||||
|
||||
pollingNtcSensors();
|
||||
this->yield();
|
||||
|
||||
pollingBleSensors();
|
||||
this->yield();
|
||||
|
||||
this->globalLastPollingTime = millis();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user