From 9174987477c2b8483ffa5a6870f746a50e2cd968 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Sat, 8 Nov 2025 14:02:03 +0100 Subject: [PATCH] deep sleep during 1 second --- the-cup.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/the-cup.ino b/the-cup.ino index b9f23b6..5e1d3e4 100644 --- a/the-cup.ino +++ b/the-cup.ino @@ -27,6 +27,7 @@ #define LED_PIN 15 #define SS_PIN 4 +#define SLEEP_DURATION 1 MFRC522DriverPinSimple ss_1_pin(SS_PIN); // Configurable, take an unused pin, only HIGH/LOW required, must be different to SS 2. @@ -102,6 +103,7 @@ void send_uid(char reader_uid[]) { https.end(); Serial.print("[HTTPS] ended...\n"); + ESP.deepSleep(SLEEP_DURATION * 1000000); } void byte_to_string(byte array[], unsigned int len, char buffer[]) {