27 lines
440 B
C
27 lines
440 B
C
// esp_info.h
|
|
#ifndef ESP_INFO_H
|
|
#define ESP_INFO_H
|
|
|
|
#pragma once
|
|
#include <Arduino.h>
|
|
|
|
// Utility functions
|
|
void prettyPrintBytes(size_t bytes);
|
|
String formatBytes(size_t bytes);
|
|
|
|
// Individual info getters
|
|
String getCPUInfo();
|
|
String getTemperatureInfo();
|
|
String getRAMInfo();
|
|
String getPSRAMInfo();
|
|
String getFlashInfo();
|
|
|
|
// HTML generators
|
|
String getESPInfoHTML();
|
|
String getRAMInfoHTML();
|
|
|
|
// Debug print
|
|
void printESPInfo();
|
|
|
|
#endif
|