#include <FirebaseESP32.h>
FirebaseData fbdo;
FirebaseConfig config;
FirebaseAuth auth;
#define API_KEY "AIzaSyDHUHCInzdvk814SPnQLLpXW5c1bYyZiyo"
#define DATABASE_URL "esp8266-e1753-default-rtdb.firebaseio.com"
void setup() {
config.database_url = DATABASE_URL;
config.api_key = API_KEY;
if (Firebase.signUp(&config, &auth, "", "")) {
Serial.println("Sign up successful");
} else {
Serial.printf("Sign up failed. Reason: %s\n", config.signer.signupError.message.c_str());
}
Firebase.begin(&config, &auth);
Firebase.reconnectWiFi(true);
}
void loop() {
Firebase.setFloat(fbdo, "/temperature", 1.5);
}