mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 07:26:38 +02:00
* inverter dependent mqtt (is avail)
* implemented heap stats #58 * inserted 'break' in ISR while loop
This commit is contained in:
parent
81943441e0
commit
df5a306bb2
6 changed files with 52 additions and 25 deletions
|
@ -81,6 +81,15 @@ class Main {
|
|||
return false;
|
||||
}
|
||||
|
||||
void stats(void) {
|
||||
uint32_t free;
|
||||
uint16_t max;
|
||||
uint8_t frag;
|
||||
ESP.getHeapStats(&free, &max, &frag);
|
||||
|
||||
Serial.printf("free: 0x%x - max: 0x%x - frag: %d%%\n", free, max, frag);
|
||||
}
|
||||
|
||||
char mStationSsid[SSID_LEN];
|
||||
char mStationPwd[PWD_LEN];
|
||||
bool mWifiSettingsValid;
|
||||
|
@ -115,6 +124,7 @@ class Main {
|
|||
uint32_t mUptimeTicker;
|
||||
uint16_t mUptimeInterval;
|
||||
uint32_t mUptimeSecs;
|
||||
uint8_t mHeapStatCnt;
|
||||
|
||||
DNSServer *mDns;
|
||||
ESP8266HTTPUpdateServer *mUpdater;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue