Esp8266 with firebase

I want to control a relay using firebase and esp8266 can someone say which lib is best for this I try many but each lib have problem

Please suggest me lib for esp8266

What have you tried? What were the results? Show your work.

#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>

#define FIREBASE_HOST "@@@@@@@@@@@@@@@@"  // Replace with your Firebase Host URL
#define FIREBASE_AUTH "@@@@@@@@@@@"    // Replace with your Firebase Auth Token
#define WIFI_SSID "................"                                     // Replace with your WiFi SSID
#define WIFI_PASSWORD "@@@@"                                    // Replace with your WiFi Password

void setup() {
  Serial.begin(9600);

  // Connect to Wi-Fi
  Serial.print("Connecting to WiFi");
  WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
  while (WiFi.status() != WL_CONNECTED) {
    Serial.print(".");
    delay(500);
  }
  Serial.println();
  Serial.print("Connected to WiFi, IP address: ");
  Serial.println(WiFi.localIP());

  // Connect to Firebase
  Serial.print("Connecting to Firebase");
  Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);

  // Test writing to Firebase
  Firebase.setFloat("test/path", 123.45);
  if (Firebase.failed()) {
    Serial.print("Failed to write to Firebase: ");
    Serial.println(Firebase.error());
    return;
  }
  Serial.println("Successfully wrote to Firebase.");

  // Test reading from Firebase
  float value = Firebase.getFloat("test/path");
  if (Firebase.failed()) {
    Serial.print("Failed to read from Firebase: ");
    Serial.println(Firebase.error());
    return;
  }
  Serial.print("Read value from Firebase: ");
  Serial.println(value);
}

void loop() {
  // Empty loop
}

problem is firebase not connected to to my node mcu no any compile error my node mcu keep resetting

Show the compile results, which might have clues.

Is this just the board, or are devices connected by wires?

now it working i just was used wrong lib
now i nam using
https://github.com/mobizt/Firebase-ESP-Client

Is this using the FirebaseArduino library?

No not at all, I am using GitHub - mobizt/Firebase-ESP-Client: [DEPRECATED]🔥Firebase Arduino Client Library for ESP8266, ESP32 and RP2040 Pico. The complete, fast, secured and reliable Firebase Arduino client library that supports RTDB, Cloud Firestore, Firebase and Google Cloud Storage, Cloud Messaging and Cloud Functions for Firebase.

And it's working fine as my expectations

[GitHub - mobizt/Firebase-ESP-Client: [DEPRECATED]🔥Firebase Arduino Client Library for ESP8266, ESP32 and RP2040 Pico. The complete, fast, secured and reliable Firebase Arduino client library that supports RTDB, Cloud Firestore, Firebase and Google Cloud Storage, Cloud Messaging and Cloud Functions for Firebase.](h

Using this