Added seeed_xiao_esp32s3

This commit is contained in:
Rene Zeldenthuis
2023-08-17 01:57:14 +02:00
parent aee7cbddd8
commit b3cb7d1bf7
3 changed files with 86 additions and 16 deletions

View File

@@ -17,7 +17,9 @@
#include <moustache.h>
#include <settings.h>
#ifdef TEMPRATURE_SEND_READ
extern "C" uint8_t temprature_sens_read();
#endif
// HTML files
extern const char index_html_min_start[] asm("_binary_html_index_min_html_start");
@@ -119,7 +121,11 @@ void handle_root()
{"PsRamSize", format_memory(ESP.getPsramSize(), 0)},
// Diagnostics
{"Uptime", String(format_duration(millis() / 1000))},
#ifdef TEMPRATURE_SEND_READ
{"Temperature", String((temprature_sens_read() - 32) / 1.8)},
#else
{"Temperature", "N/A"},
#endif
{"FreeHeap", format_memory(ESP.getFreeHeap())},
{"MaxAllocHeap", format_memory(ESP.getMaxAllocHeap())},
{"NumRTSPSessions", camera_server != nullptr ? String(camera_server->num_connected()) : "RTSP server disabled"},