Uploading data to firebase using NodeMCU
-
@salmanfaris Thanks for the support!!
I finally resolved the error. I have taken FIREBASE_AUTH as apiKey instead of Database secrets. -
@Anudeep Great . Glad to know that it is solved , Keep hacking
-
@Anudeep Hello Anudeep could you please help me out by elaborating the fix to get rid of that error?
Thanks in advance. -
Hello @Palani, In the Firebase, there are two types of storage,
- Cloud Firestore (Very recent one & NoSQL database)
- Realtime Database (To which we upload the data using NodeMCU)
In the Arduino Code, you can see that there is a variable named FIREBASE_AUTH.
This variable should be assigned to the Database secret. This you can find in Project Settings -> Service accounts -> Database Secrets.
My mistake is, i have mistakenly assigned thay to Web API key. This is found at Project Settings -> General.
The error can also occur when u don't initialise a proper realtime database in Firebase. (This is not my case).
-
@Anudeep Thanks a lot m8, I actually made a very silly mistake of including the https:// while entering FIREBASE_HOST, where I must have entered the Domain name alone and removed the https:// extension.
Thanks again for replying that quick. Cheers.