From 36e148744e981342a1a282624963209f8eb116fb Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Sat, 1 Nov 2025 17:59:08 +0100 Subject: [PATCH] display error if http error --- the-cup.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/the-cup.ino b/the-cup.ino index 6614c68..0d50de7 100644 --- a/the-cup.ino +++ b/the-cup.ino @@ -105,9 +105,12 @@ void loop() { // if (httpCode == HTTP_CODE_OK) { if (httpCode == HTTP_CODE_CREATED) { displaySuccess(); + return; } else { displayError(); } + } else { + displayError(); } https.end();