Add connection error handling to display: show error messages for registration and API connection issues

This commit is contained in:
Manuel Weiser committed 2026-02-20 11:03:14 +01:00
1 parent f29e6aeded
commit 86973c07ec
4 files changed
+33 -16

No files matched your search

+16
View File
@@ -253,3 +253,19 @@ void oledShowWeight(uint16_t weight) {
display.print(" g");
display.display();
}
void oledShowConnectionError(const char* error, const String& ip) {
oledcleardata();
display.setTextSize(1);
// Error Message
display.setCursor(oled_center_h(error), OLED_DATA_START + 4);
display.print(error);
// IP Address
display.setTextSize(1);
display.setCursor(oled_center_h(ip), OLED_DATA_START + 24);
display.print(ip);
display.display();
}