mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-09 15:06:37 +02:00
* try to avoid exceptions, added yield
* try to fix DNS problems
This commit is contained in:
parent
7b0eeb2d4e
commit
169bf8c7c8
3 changed files with 7 additions and 4 deletions
|
@ -150,7 +150,8 @@ void app::loop(void) {
|
|||
inv = mSys->getInverterByPos(i);
|
||||
if(NULL != inv) {
|
||||
mSys->Radio.sendTimePacket(inv->radioId.u64, mTimestamp);
|
||||
delay(20);
|
||||
yield();
|
||||
delay(100);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -171,6 +172,7 @@ void app::loop(void) {
|
|||
snprintf(val, 10, "%.3f", mSys->getValue(iv, i));
|
||||
mMqtt.sendMsg(topic, val);
|
||||
delay(20);
|
||||
yield();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -187,6 +189,7 @@ void app::loop(void) {
|
|||
snprintf(val, 10, "%.3f %s", mSys->getValue(iv, i), mSys->getUnit(iv, i));
|
||||
Serial.println(String(topic) + ": " + String(val));
|
||||
}
|
||||
yield();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue