I'm a beginner and I was trying to send and receive data from firebase by using the esp8266 wifi module, but it didn't seem to work, nor did it return any error, please solve this issue
This is my code :
#include <SoftwareSerial.h>
#include <FirebaseArduino.h>
#include <ArduinoJson.h>
#include <ESP8266HTTPClient.h>
// Set these to run example.
#define FIREBASE_HOST "esp8266-d2343-default-rtdb.firebaseio.com"
#define FIREBASE_AUTH "THE_API_KEY_OF_MY_DATABASE"
#define WIFI_SSID "Lenovo Tab 3211"
#define WIFI_PASSWORD "MY_WIFI_PASSWORD"
void setup()
{
Serial.begin(9600);
delay(1000);
pinMode(led, OUTPUT);
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
Serial.print("Connecting to ");
Serial.print(WIFI_SSID);
while (WiFi.status() != WL_CONNECTED)
{
Serial.print(".");
delay(500);
}
Serial.println();
Serial.print("Connected to ");
Serial.println(WIFI_SSID);
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
Firebase.setString("LED_STATUS", "OFF");
}
void loop(){
Serial.println(Firebase.getString("LED_STATUS))l
}
It's not a problem if there's anything wrong in the void loop() code, I just typed it as an example,but please let me know if you find anything else in the code
I have also update the FirebaseFingerPrint to this :
CF:6C:F8:33:A3:FB:42:4A:49:0A:E7:72:24:53:1A:11:A2:C1:34:0D // 2022-APRIL
I didn't find anything newer than this one
The FirebaseFingerPrint
just updated to this :
5A:80:FB:80:F8:CD:DF:B4:C0:22:15:C6:42:DF:88:9A:F3:C9:39:75
So, I just needed to change it in the FirebaseHttpClient.h
file and it started to work