mobizt / Firebase-ESP32

[DEPRECATED]🔥 Firebase RTDB Arduino Library for ESP32. The complete, fast, secured and reliable Firebase Arduino client library that supports CRUD (create, read, update, delete) and Stream operations.
MIT License
415 stars 118 forks source link

Problems verifyring code for Firebase ESP32 #294

Closed IvanRohde closed 12 months ago

IvanRohde commented 12 months ago

hi I code that had work fin but after an update it does not work. I have tried to downgrade/ uninstall some libraries, and totally lost track of witch libraries i should use.
hope some body can help.

regard Ivan

Error Messages Compilation error: no matching function for call to 'FirebaseESP32::begin(const char [28], const char [41])'

My code

include

include

include

define WIFI_SSID "uyghuir"//

define WIFI_PASSWORD "uhufhu"//

define FIREBASE_HOST "my.firebaseio.com"

define FIREBASE_AUTH "IUHiouhiojopifg"

String Klub_navn_s = "Hammel";

FirebaseData firebaseData;

void setup() { Serial.begin(115200); WiFi.begin(WIFI_SSID, WIFI_PASSWORD); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println(); Serial.println("Wi-Fi connected");

Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH); }

void loop() { // Generate a random number int sensorValue = random(100);

// Update data in Firebase Firebase.setInt(firebaseData, "/Vejr", sensorValue); Firebase.setInt(firebaseData, "/Vejr/sensorValue", sensorValue);//

if (firebaseData.dataAvailable()) { if (firebaseData.httpCode() == 200) { Serial.println("Data uploaded successfully"); } else { Serial.println("Failed to upload data"); } } else { Serial.println("No response from Firebase"); }

delay(5000); // Wait 5 seconds before the next upload }

mobizt commented 12 months ago

Please see the examples for using library correctly.