Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

database push/set/get no longer working after latest Firebase SDK update, any quick solutions? #237

Closed
TellesF22 opened this issue Dec 14, 2016 · 13 comments

Comments

@TellesF22
Copy link

TellesF22 commented Dec 14, 2016

would appreciate any input. thanks for this great library.

@jratenci
Copy link

any solution for this issue?

@tomeryehu
Copy link

I have the same problem too...what happned?

@ChrisAlphabet
Copy link

You have to update the fingerprint. I will post what I had to change today when I get home in about 45 minutes.

@ChrisAlphabet
Copy link

Have a look at #236

@jratenci
Copy link

Hello everyone, I found the solution in #236

@ihmgsm
Copy link

ihmgsm commented Dec 14, 2016

This is too sad. What should I do if I do not have physically access to the device anymore? Or just imagine it is in production and it is sold to the client?

@FarjadNoor
Copy link

In my code I am including these 2 header file

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

#define FIREBASE_HOST "xyz.firebaseio.com"
#define FIREBASE_AUTH "DATA SECRETS"

after changing fingerprint, do I must have to include FirebaseHttpClient header file in my Arduino code or it will work without including it??

@ChrisAlphabet
Copy link

I think it needs to be included. Does it compile without it?

@proppy
Copy link
Contributor

proppy commented Dec 15, 2016

Fingerprint update merged, and filed an issue to expose the fingerprint as an optional parameter.

Thanks for the quick report!

@proppy proppy closed this as completed Dec 15, 2016
@FarjadNoor
Copy link

Yes it compiles and perfectly running on esp before Update. Now the same code is not working and did not get the data from firebase.

@ChrisAlphabet
Copy link

Have you run the code with FirebaseHttpClient.h added to your user code? I did a quick test and it needs to be there if you have Firebase Arduino in the lib folder

@FarjadNoor
Copy link

FarjadNoor commented Dec 15, 2016

Yes, I have But Now it is not Getting the data from firebase only pushing/setting the data is working. This is the exact code which is working Before the update. Is there any problem in it, Please guide me because we are stuck in this problem and due to this our Final year Project is Delayed in submission . Thank you

#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
#include <FirebaseHttpClient.h>
// Set these to run example.
#define FIREBASE_HOST "xyz.firebaseio.com"
#define FIREBASE_AUTH "Secret"
#define WIFI_SSID "xyz"
#define WIFI_PASSWORD "123"
void setup() {
  Serial.begin(115200);
  WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
  Serial.print("connecting");
  while (WiFi.status() != WL_CONNECTED) {
    Serial.print(".");
    delay(500);
  }
  pinMode(2, OUTPUT);
  Serial.println();
  Serial.print("connected: ");
  Serial.println(WiFi.localIP());
  
  Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
  
}
int n = 0;
void loop() {
  FirebaseObject p2= "";
  p2 = FirebaseArduino.get("/xyz/abc/123");
  if (Firebase.failed()) {
      Serial.print("setting /number failed:");
      Serial.println(Firebase.error());  
      return;
  }
  Serial.println();
  int x = 0;
  x = p2.getInt("/Relay1/status");
  Serial.println(x);
  Serial.println();
  digitalWrite(2, x);
  delay(1000);
  String name = Firebase.pushInt("logs", n++);
  if (Firebase.failed()) {
      Serial.print("pushing /logs failed:");
      Serial.println(Firebase.error());  
      return;
  }
 Serial.print("pushed: /logs/");
  Serial.println(name);
}

@yukimach
Copy link

yukimach commented Aug 9, 2018

Hi,

Firebase.push() was working until last month, and the same code no longer is working for me. "setting /number failed:" is triggered.

connecting with:
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);

and testing a push with

Firebase.push("test", 1);
 if (Firebase.failed()) {
   Serial.print("setting /number failed:");
   Serial.println(Firebase.error());
   //            digitalWrite(resetPin, LOW);
   return;
 }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants