FirebaseExtended / firebase-arduino

Arduino samples for Firebase.
Apache License 2.0
943 stars 494 forks source link

Firebase Arduino problem with sending datas #434

Open lucassouza000 opened 5 years ago

lucassouza000 commented 5 years ago

Hi, i'm trying to send datas to Firebase Real Time Database, and im using FirebaseDemo Code. I've made all the configuration in Firebase, following all the staps, i've downloaded the library, all this correctly, but there is no sign of life in firebase, nothing is sent, can anybody help me, please? Is important to report that i already modified the FirebaseHttpClient to the new version, like others posts advises, so, i dont know how to fix that, thank you !!

TrickSumo commented 5 years ago

Hi

Are you sure that Nodemcu is connected to firebase?

Use this inside your code to cross check.


int count =0;

void setup{// wifi etc.}

void loop()
{

  if (Firebase.failed())
  {
    Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
    Serial.println(Firebase.error());
    delay(10);
    Serial.println("Error connecting firebase!");
    count++;
    if (count == 10) {
      count = 0;
      ESP.reset();
    }

  return;
  }

Also update SSL fingerprint. https://www.grc.com/fingerprints.htm?domain=test.firebaseio.com

Hope it help.

raghavendralg commented 5 years ago

hi i am trying to send a data from nodemcu to firebase but its not working can plz send me the ardunio code

TrickSumo commented 5 years ago

hi i am trying to send a data from nodemcu to firebase but its not working can plz send me the ardunio code

Hi @raghavendralg

Check out this:-

  1. https://youtu.be/dLvSGPsV344
  2. https://tricksumo.com/use-firebase-with-mit-app-inventor/#1_Create_real-time_database
  3. https://gist.github.com/TrickSumo/b6019110713446fca7743ec1e65793f4