Add print log functionality and device name handling

- Introduced functions to capture and manage incoming print logs.
- Added a download link for the incoming print log in the web interface.
- Updated device name prefix for BLE and added device name building logic.
- Enhanced SerialCommand class with line handler support.
- Implemented WiFi reconnect logic and status tracking.
This commit is contained in:
2026-02-28 22:36:12 +01:00
parent 3580e32142
commit 83a55fcc47
9 changed files with 216 additions and 20 deletions

View File

@@ -146,6 +146,7 @@ void handleWebInterface();
void startBleInterface();
void handleBleInterface();
bool bleProtocolWrite(const char *message);
void buildDeviceName(char *nameBuffer, size_t bufferSize);
void startWifiProtocolInterface();
void handleWifiProtocolInterface();
bool wifiProtocolWrite(const char *message);
@@ -157,6 +158,11 @@ inline bool bleProtocolWrite(const char *message)
(void)message;
return false;
}
inline void buildDeviceName(char *nameBuffer, size_t bufferSize)
{
(void)nameBuffer;
(void)bufferSize;
}
inline void startWifiProtocolInterface() {}
inline void handleWifiProtocolInterface() {}
inline bool wifiProtocolWrite(const char *message)
@@ -168,5 +174,8 @@ inline bool wifiProtocolWrite(const char *message)
void Log(const String &message);
void Log(const char *message);
String buildLogsJson(uint32_t sinceSeq);
void captureIncomingPrintLine(const char *line, ProtocolTransport transport);
String buildIncomingPrintLogText();
void clearIncomingPrintLog();
#endif