Getting empty variables from firebase(NodeMCU ESP8266)

Hi,
So I am using NodeMCU ESP8266 and trying to print varibales like Int and strings, I used this program around a week ago and It worked great, Now suddenly its not working, I tried everything, I checked the wiring, opened a new Firebase with a new account and tried and it still shows empty strings/zero ints.
NodeMCU Code:

#include <Firebase.h>
#include <FirebaseArduino.h>
#include "FirebaseArduino.h"
#include <ESP8266WiFi.h>
#include<ArduinoJson.h>
#include <FirebaseArduino.h>
#include <Wire.h>   
#define FIREBASE_HOST "safe-61558.fxxxxxxo.com"  //CENSORED
#define FIREBASE_AUTH "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" //CENSORED
#define WIFI_SSID "Xiaomi_67BF" 
#define WIFI_PASSWORD "xxxxxxx" //CENSORED
String allSensorsData = "";
String Pass,DoorStatus;
void setup() { 
  Serial.begin(9600); 
  Wire.begin(D1, D2);
  // connect to wifi. 
  WiFi.begin(WIFI_SSID, WIFI_PASSWORD); 
  Serial.print("connecting"); 
  while (WiFi.status() != WL_CONNECTED) { 
    Serial.print("."); 
    delay(500); 
  } 
  Serial.println(); 
  Serial.print("connected: "); 
  Serial.println(WiFi.localIP()); 
  Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH); 
  delay(10);
} 

void loop() {
  GetDataFromFirebase();
}
void GetDataFromFirebase(){
  Pass = Firebase.getString("Password");
  DoorStatus = Firebase.getString("ApplicationDoor");
  int l =  Firebase.getInt("Num");
  Serial.println(Pass);
  Serial.println(DoorStatus);
  Serial.println(l);
}

Did You test performing a controller reset?
For how long time did the controller run before the trouble occurred?
I suspect the use of Strings.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.