deep sleep during 1 second

This commit is contained in:
Christophe Robillard 2025-11-08 14:02:03 +01:00
parent 832f3d883c
commit 9174987477

View file

@ -27,6 +27,7 @@
#define LED_PIN 15 #define LED_PIN 15
#define SS_PIN 4 #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. 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(); https.end();
Serial.print("[HTTPS] ended...\n"); Serial.print("[HTTPS] ended...\n");
ESP.deepSleep(SLEEP_DURATION * 1000000);
} }
void byte_to_string(byte array[], unsigned int len, char buffer[]) { void byte_to_string(byte array[], unsigned int len, char buffer[]) {