firebase-arduino: Firebase-arduino not work in PlatformIO
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 ?.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 20
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.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
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 😄