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])'
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 }