mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-24 22:36:10 +02:00
0.7.9
* added 'improve' functions to set wifi password directly with ESP web tools #1014 * fixed MqTT publish while appling power limit #1013 * slightly improved HMT live view (Voltage & Current)
This commit is contained in:
commit
ddf63eaffe
13 changed files with 272 additions and 36 deletions
|
@ -96,12 +96,15 @@ void app::setup() {
|
|||
|
||||
mPubSerial.setup(mConfig, &mSys, &mTimestamp);
|
||||
|
||||
mImprov.setup(this, mConfig->sys.deviceName, mVersion);
|
||||
|
||||
regularTickers();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void app::loop(void) {
|
||||
mInnerLoopCb();
|
||||
mImprov.tickSerial();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -209,7 +212,7 @@ void app::regularTickers(void) {
|
|||
if (mConfig->plugin.display.type != 0)
|
||||
everySec(std::bind(&DisplayType::tickerSecond, &mDisplay), "disp");
|
||||
every(std::bind(&PubSerialType::tick, &mPubSerial), mConfig->serial.interval, "uart");
|
||||
|
||||
//everySec(std::bind(&Improv::tickSerial, &mImprov), "impro");
|
||||
// every([this]() {mPayload.simulation();}, 15, "simul");
|
||||
}
|
||||
|
||||
|
@ -326,7 +329,7 @@ void app::tickMinute(void) {
|
|||
// only triggered if 'reset values on no avail is enabled'
|
||||
|
||||
zeroIvValues(true);
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void app::tickMidnight(void) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue