From 16a14929964d4a5429d599e4a2b3d1a873807b72 Mon Sep 17 00:00:00 2001 From: Preethesh16 Date: Thu, 12 Feb 2026 12:58:03 +0530 Subject: [PATCH] changes in locking system by Preethesh --- Mark_Attendence_by_stevin/.gitignore | 1 + Mark_Attendence_by_stevin/src/main.cpp | 16 +++++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Mark_Attendence_by_stevin/.gitignore b/Mark_Attendence_by_stevin/.gitignore index 89cc49c..e1f14c8 100644 --- a/Mark_Attendence_by_stevin/.gitignore +++ b/Mark_Attendence_by_stevin/.gitignore @@ -3,3 +3,4 @@ .vscode/c_cpp_properties.json .vscode/launch.json .vscode/ipch +src/secrets.h diff --git a/Mark_Attendence_by_stevin/src/main.cpp b/Mark_Attendence_by_stevin/src/main.cpp index bda8798..2c31552 100644 --- a/Mark_Attendence_by_stevin/src/main.cpp +++ b/Mark_Attendence_by_stevin/src/main.cpp @@ -1,5 +1,7 @@ #include +#include "secrets.h" + #include #include @@ -14,10 +16,7 @@ #include -// hidden code id : 1 -#define WIFI_SSID "" -#define WIFI_PASSWORD "" -#define DATABASE_URL "" + FirebaseData fbdo; @@ -199,9 +198,16 @@ void setup() config.database_url = DATABASE_URL; // hiden code id : 2 - config.signer.tokens.legacy_token = ""; + config.signer.tokens.legacy_token = FIREBASE_LEGACY_TOKEN; Firebase.begin(&config, &auth); +// if (Firebase.setString(fbdo, "connection_test", "ESP_OK")) { +// Serial.println("Firebase Write Success"); +// } else { +// Serial.print("Firebase Error: "); +// Serial.println(fbdo.errorReason()); +// } + Firebase.reconnectWiFi(true);