Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Mark_Attendence_by_stevin/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/ipch
src/secrets.h
16 changes: 11 additions & 5 deletions Mark_Attendence_by_stevin/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <Arduino.h>

#include "secrets.h"

#include <ESP8266WiFi.h>

#include <FirebaseESP8266.h>
Expand All @@ -14,10 +16,7 @@

#include <NTPClient.h>

// hidden code id : 1
#define WIFI_SSID ""
#define WIFI_PASSWORD ""
#define DATABASE_URL ""


FirebaseData fbdo;

Expand Down Expand Up @@ -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);

Expand Down