From 9b0341bb79de354cf60c55d9e0d1b4531893265e Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Sun, 10 Aug 2025 18:17:08 +0200 Subject: [PATCH] remove logging on serial port for performance reason --- the-cup.ino | 8 -------- 1 file changed, 8 deletions(-) diff --git a/the-cup.ino b/the-cup.ino index b6015b9..9cba7e5 100644 --- a/the-cup.ino +++ b/the-cup.ino @@ -88,7 +88,6 @@ void loop() { http.begin(client, "http://192.168.1.32:3000/rfid_tags"); // HTTP http.addHeader("Content-Type", "application/json"); - Serial.print("[HTTP] POST...\n"); char str[32] = ""; array_to_string(reader.uid.uidByte, 4, str); //Insert (byte array, length, char array for output) Serial.println(str); //Print the output uid string @@ -98,19 +97,12 @@ void loop() { // httpCode will be negative on error if (httpCode > 0) { // HTTP header has been send and Server response header has been handled - Serial.printf("[HTTP] POST... code: %d\n", httpCode); - // file found at server // if (httpCode == HTTP_CODE_OK) { if (httpCode == HTTP_CODE_CREATED) { - const String& payload = http.getString(); - Serial.println("received payload:\n<<"); - Serial.println(payload); - Serial.println(">>"); displaySuccess(); } } else { - Serial.printf("[HTTP] POST... failed, error: %s\n", http.errorToString(httpCode).c_str()); displayError(); }