Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase-arduino not work in PlatformIO #255

Closed
xang555 opened this issue Mar 23, 2017 · 20 comments
Closed

Firebase-arduino not work in PlatformIO #255

xang555 opened this issue Mar 23, 2017 · 20 comments

Comments

@xang555
Copy link

xang555 commented Mar 23, 2017

when i use firebase-arduino in platformIO IDE . it can not work with firebase but when i use the same code in arduino IDE. it is work

here my code :

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

// Set these to run example.
#define FIREBASE_HOST "XXXXXX-281c0.firebaseio.com"
#define FIREBASE_AUTH "8miUWHWVrb5gTBxsraRs7Q60slKqrJRaXXXXX"

char* WIFI_SSID = "XXX";
char* WIFI_PASSWORD = "XXXXXX";

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

  // 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);

}

void loop() {
  // set value
uint8_t val =  Firebase.getInt("switchLigth/l002/state");
  // handle error
  if (Firebase.failed()) {
      Serial.print("setting /number failed:");
      Serial.println(Firebase.error());
      return;
  }

  Serial.println(val);

  delay(1000);
}

here result from PlatformIO

�connecting......
connected: 192.168.43.138
setting /number failed:
setting /number failed:
setting /number failed:
setting /number failed:

here result from Arduino IDE which it is work

connected: 192.168.43.138
1
1
1
1
1
1
1

what happen about this problem ?.

@makered
Copy link

makered commented Mar 31, 2017

Same issue for me. Running core 3.3.0.

Build is successful, but after flashing my NodeMCU, Firebase.failed() is triggered but Firebase.error() is blank

@judismith
Copy link

Same issue here.

@makered
Copy link

makered commented Apr 6, 2017

Found a workaround 😃.

Instead of using the FirebaseArduino (ID#1259) library via the PlatformIO's library manager, clone the firebase-arduino repo and place in your project's /lib as a private lib.

@proppy
Copy link
Collaborator

proppy commented Apr 10, 2017

Sound like someone registered the library to platformio, maybe bumping the version number would ensure it get refreshed there?

@ngominhtrint
Copy link

Hi, I got the same issue, but don't know how to fix it.
@proppy, is there any way to ignore bumping version?
@makered, I've tried to clone, place in ~/Documents/Arduino/libraries/firebase-arduino-master but still doesn't work. Any ideas to double check on that case.
Hope receive some help from you guys 😄

@makered
Copy link

makered commented Apr 30, 2017

@ngominhtrint

I cloned firebase-arduino in my PlatformIO project's lib. Full path:

project_dir/lib/firebase-arduino

see readme.txt in lib for more information

Also remove the PlatformIO instance of the lib:

pio lib uninstall FirebaseArduino

@proppy it appears that Firebase Arduino lib version in PlatformIO registry is already on latest (0.1)

@marioamg03
Copy link

who you remove the PlatformIO instance of the lib?
i have the same error :(

@kleyk
Copy link

kleyk commented Sep 19, 2017

same problem here, any alternatives?

@Iccr
Copy link

Iccr commented Oct 17, 2017

i am facing same problem. any workaround ?

@amanasmuei
Copy link

same here..any solution ?

@julpanzul
Copy link

use this library -> https://github.com/RaemondBW/firebase-arduino

@Iccr
Copy link

Iccr commented Jan 24, 2018

broken link. @julpanzul

@ngominhtrint
Copy link

This link ==> https://github.com/RaemondBW/firebase-arduino
I just found on RaemondBW repo. Look like they forked from firebase/firebase-arduino. And I am not sure where is the change log after they forked. But thanks @julpanzul

@Jackfr0zt
Copy link

it is automatically add data in firebase when you set it in arduino?

@proppy
Copy link
Collaborator

proppy commented Jun 15, 2018

sorry for the lack of followup.

@ngominhtrint I think this was to change the fingerprint.

I hope we can get a proper Platform.IO package after https://github.com/firebase/firebase-arduino/milestone/2 is done.

@Jackfr0zt I invite you to take a look at the examples:
https://github.com/firebase/firebase-arduino/tree/96eab42c654f2445fd467d32530a1b09013052e2/examples

@proppy proppy closed this as completed Jun 15, 2018
@ghost
Copy link

ghost commented Jun 27, 2018

This link ==> https://github.com/RaemondBW/firebase-arduino
I just found on RaemondBW repo. Look like they forked from firebase/firebase-arduino. And I am not sure where is the change log after they forked. But thanks @julpanzul

This worked for me. Thanks

@adamrabbani
Copy link

adamrabbani commented Jun 27, 2018

This link --> https://github.com/RaemondBW/firebase-arduino

this libary stable for me.. rarely for setting number failed../
i think the issue lastest library firebase is version of ArduinoJson

temporarily, i will downupgrade with this libary because old..

@proppy @kotl

@proppy
Copy link
Collaborator

proppy commented Jun 27, 2018

@adamrabbani I think the only update of this fork is the change of the fingerprint.

If you have problem with the library it might indicate a regression with recent changes (like #330).

Can you comment with more details on #357 and maybe give a try to #353 and see if it fixes your issue.

@jeraldkingn
Copy link

I'm too facing the same problem,I tried this RaemondBW link..But it is not working for me
please say some other solutions

@tarasinf
Copy link

I had the same issue and fixed by clone to local lib dir:

  • open lib directory in the project folder
  • git clone https://github.com/FirebaseExtended/firebase-arduino.git
  • add import ArduinoJson by adding ArduinoJson@5.13.1 into lib_deps (for me worked only this version)

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

No branches or pull requests