-
Notifications
You must be signed in to change notification settings - Fork 492
firebase with ESP8266 #310
Comments
The firebase Host is wrong the correct way would be (w/o final slash):
|
@JuanPTM |
how to create a firebase parent node? |
I think, your problem is still about configuration, because that is the example code.
As I said before, the example code is working on the ESP8266, at least until a week ago or so (I dont have an ESP8266 to prove it right now). |
Im having the same issue as well. I found the secret key for the database but it says that its been deprecated and that the code needs to be updated with the firebase admin sdk. However the most obvious ways are only for android, ios, and web applications.... |
Does anyone show this error below and how to fix it /Users/huifengchen/Documents/Arduino/libraries/firebase-arduino-master/src/FirebaseHttpClient_Esp8266.cpp: In member function 'virtual std::string FirebaseHttpClientEsp8266::errorToString(int)': |
@JuanPTM sir there is possible that there is a problem on circuit that's why it failed? can you help me? i have the same problem above.. im using arduino uno and esp-07.. i connect it to 3.3v in arduino pin to my esp. |
@Jackfr0zt sorry but i can't help you, I've never use an ESP with and Arduino UNO, just used a NodeMCU or WEMOS. |
any updates on the firebase-arduino? |
I'm having the same problem, I downloaded it again, updated but it does not work. |
Ive had that issue and changed the arduino ide to a older version. I think
18.3
…On Tue, Mar 13, 2018 at 1:25 PM, heriveltogabriel ***@***.***> wrote:
I'm having the same problem, I downloaded it again, updated but it does
not work.
Someone?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#310 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AK-f4zyO6rd3rR650aTExsYFPczqxsKHks5teCtNgaJpZM4RQm7B>
.
|
Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:83:11: error: 'errorToString' is not a member of 'HTTPClient'
this is error can u please help me with this |
@JuanPTM Any help would be a great help. Thanks, |
I have successfully tested on Node MCU |
Just try to download your library again and upgrade your ide. Hope that ll work |
@vivekaris You tested recently? If yes, then Wemos D1 has problem with firebase? |
@kulwant96 I tried that many. Didn't help. I started doubting my Wemos board ability to support firebase. |
As per my research most of 8266 code not compatible with wemos D1. Try is on node MCU .I will try to help. |
Folks, Thanks for your inputs. |
Never had any problems with D1 Mini, in fact it is the most used controller for me. And FYI, this is in the main readme: Dependencies |
Filed #349 to improve error messaging, I hope it can clear some of the issues reported here. |
Failed to set data to firebase database, I am using Wemos Mini, and I have include ArduinoJson Library but it is still not working #include <ESP8266WiFi.h> // Set these to run example. void setup() { // connect to wifi. Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH); int n = 0; void loop() { |
Please am having the same issue on my nodeMCU, any solution?? |
i am having the same problem any solution -thanks #include <ESP8266WiFi.h> // Set these to run example. char* WIFI_SSID = "RK"; void setup() { // connect to wifi. Firebase.begin(FIREBASE_HOST,FIREBASE_AUTH); void loop() // handle error output: |
remove / from **.firebaseio.com/**. IT worked for me now |
i am using Nodemcu and |
I am searching for solution till now but don't get any..... |
Its fixed!!! go to C:/Users/{username}/My Documents/Arduino/libraries/firebase-arduino-master/src open FirebaseHttpClient.h file, and paste following fingerprint => 6F D0 9A 52 C0 E9 E4 CD A0 D3 02 A4 B7 A1 92 38 2D CA 2F 26 Now build and upload the sketch to NodeMCU using Arduino IDE |
still the same situation repeating |
here is the code I am using- #include <ESP8266WiFi.h> #define DEVICE1 D1 void setup() { Firebase.begin(FIREBASE_HOST,FIREBASE_AUTH); if (Firebase.failed()) { void loop() { signal2=Firebase.getString(Device2Text).toInt(); signal3=Firebase.getString(Device3Text).toInt(); signal4=Firebase.getString(Device4Text).toInt(); I am using 4 devices to control using Relay. And using NodeMCU 12E |
Add the below header files to your code This procedure works guaranteed with ESP01. |
Thank you very much bro your code is very very very helpful to me...... |
Is anyone got a solution for this yet? |
#ifndef FIREBASE_HTTP_CLIENT_H #include #include "Arduino.h" struct HttpStatus { class FirebaseHttpClient { virtual void setReuseConnection(bool reuse) = 0; virtual void end() = 0; virtual void addHeader(const std::string& name, const std::string& value) = 0; virtual int sendRequest(const std::string& method, const std::string& data) = 0; virtual std::string getString() = 0; virtual Stream* getStreamPtr() = 0; virtual std::string errorToString(int error_code) = 0; virtual bool connected() = 0; protected: static const char kFirebaseFingerprint[] = #endif // FIREBASE_HTTP_CLIENT_H I had replaced this row : with : is that what you mean ? |
could you please til us what was the solution for the problem? |
Change your firebase url in your source Don't include http: in your source file of firebase url statement Example: #define FIREBASE_HOST "myfirebase-url.firebase.com"; Don't include http in url |
Failed to read/write data to firebase.
``#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
// Set these to run example.
#define FIREBASE_HOST "esp8266-fbd9c.firebaseio.com/"
#define FIREBASE_AUTH "serect_key"
#define WIFI_SSID "SSID_name"
#define WIFI_PASSWORD "password"
void setup() {
Serial.begin(115200);
// 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);
}
int n = 0;
void loop() {
// set value
Firebase.setFloat("number", 42.0);
// handle error
if (Firebase.failed()) {
Serial.print("setting /number failed:");
Serial.println(Firebase.error());
return;
}
delay(1000);
// update value
Firebase.setFloat("number", 43.0);
// handle error
if (Firebase.failed()) {
Serial.print("setting /number failed:");
Serial.println(Firebase.error());
return;
}
delay(1000);
// get value
Serial.print("number: ");
Serial.println(Firebase.getFloat("number"));
delay(1000);
// remove value
Firebase.remove("number");
delay(1000);
// set string value
Firebase.setString("message", "hello world");
// handle error
if (Firebase.failed()) {
Serial.print("setting /message failed:");
Serial.println(Firebase.error());
return;
}
delay(1000);
// set bool value
Firebase.setBool("truth", false);
// handle error
if (Firebase.failed()) {
Serial.print("setting /truth failed:");
Serial.println(Firebase.error());
return;
}
delay(1000);
// append a new value to /logs
String name = Firebase.pushInt("logs", n++);
// handle error
if (Firebase.failed()) {
Serial.print("pushing /logs failed:");
Serial.println(Firebase.error());
return;
}
Serial.print("pushed: /logs/");
Serial.println(name);
delay(1000);
}``
Am using Arduino IDE 1.8.5
ESP8266MOD
The text was updated successfully, but these errors were encountered: