Renamed the task_batt_sensing task to task_sys_info and added displayed information like IP address or RAM consumption
This commit is contained in:
parent
4a7765fc35
commit
62b5957895
@ -8,10 +8,24 @@ boolean task_blink(void *pData)
|
||||
return true;
|
||||
}
|
||||
|
||||
boolean task_batt_sensing(void *pData)
|
||||
boolean task_sys_info(void *pData)
|
||||
{
|
||||
View1Packet *p = (View1Packet *) pData;
|
||||
Serial.printf_P(PSTR("BATT SENSING...\nRunning since : %d s\nWEB Server clients : %u\n"), millis()/1000,p->sab->getWebServer().getConnectedClientsCount());
|
||||
|
||||
uint32_t freeRAM;
|
||||
uint16_t biggestContigMemBlock;
|
||||
uint8_t HEAPfrag;
|
||||
ESP.getHeapStats(&freeRAM, &biggestContigMemBlock, &HEAPfrag);
|
||||
|
||||
Serial.printf_P(PSTR("BATT SENSING...\nRunning since : %d s\nSystem error : %u\nIP : %s, %d dBm\nWEB Server clients : %u\nMemory info:\n\tFree RAM : %u\n\tHeap frag : %u\n\tMax block %u\n"),
|
||||
millis()/1000,
|
||||
p->sab->getError(),
|
||||
p->sab->getConnectivityManager().localIP().toString().c_str(),
|
||||
p->sab->getConnectivityManager().RSSI(),
|
||||
p->sab->getWebServer().getConnectedClientsCount(),
|
||||
freeRAM,
|
||||
HEAPfrag,
|
||||
biggestContigMemBlock);
|
||||
p->powerInfo = p->sab->getPowerManager().getPowerInfo();
|
||||
|
||||
return true;
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "HttpClient.h"
|
||||
|
||||
boolean task_blink(void *);
|
||||
boolean task_batt_sensing(void *);
|
||||
boolean task_sys_info(void *);
|
||||
boolean task_esp_reset_restart(void *);
|
||||
|
||||
typedef struct dataLogger
|
||||
|
Loading…
Reference in New Issue
Block a user