deep sleep during 1 second
This commit is contained in:
parent
832f3d883c
commit
9174987477
1 changed files with 2 additions and 0 deletions
|
|
@ -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[]) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue