[Solved] Pushing multiple values in a single node in Firebase from nodeMCU.
SalmanFK last edited by salmanfaris
Since I'm new to nodeMCU and Firebase, I'm having a problem to push multiple values in a single node (randomly created) in Firebase from my nodeMCU-ESP8266. I can successfully push a single value whether it's String or Integer.
To be clear... I'm willing to store temperature and humidity values to a new node that's randomly created each time as the values are available. But, the problem is I can't push more than one value in that single node!
It'll be really helpful if you guys can help me out...
The image is the result when I store the values through an android app. But, I can't do the same with the nodeMCU!
kowshik1729 last edited by kowshik1729
@SalmanFK Thanks for posting the query. I would like to know what exactly you are referring to when you say "node".
According to what I understood you are not able to push more than one value at a time into the firebase. Am I right? is that your doubt is? Just to add on, I want to let you know that ESP8266 cannot send characters or strings to the cloud directly. You need to declare a C string and initialize a pointer to run over the length of string, then upload each character to the cloud. This is what basically I did when I faced the error.
salmanfaris last edited by salmanfaris
Hi @SalmanFK ,
You can Serialize the data as a JSON or CSV string format and publish that as a single string, so you get the data in a single node, you also DeSerialize the string simply in the application end.
@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.
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 Hello Anudeep could you please help me out by elaborating the fix to get rid of that error?
Thanks in advance.
At Adobe, we’re focused on bringing together the most intelligent, driven, diverse set of individuals and give them the freedom to nurture their intellectual curiosity. We provide them with the necessary resources and support to shape their ideas into tangible results.
Through the Adobe India Women-in-Technology Scholarship, we are striving towards creating gender equality in science, technology and engineering domains by encouraging women to showcase their excellence in computing and technology and become future leaders and role models in the field.
𝗛𝗼𝘄 𝘁𝗼 𝗮𝗽𝗽𝗹𝘆?
Applications must be submitted through their dedicated application portal which opens on August 20th, 2020 and will close on September 20th, 2020, 5 pm India time.
Application deadline: September 20th, 2020, 5 pm India time.
@kowshik1729 If you are using an external high-speed switch, there is only one one clock generator for both wifi and BLE and the high-speed switch you mentioned is Ultra-Wideband (UWB) 3–8 GHz from its datasheet
you also check this solution that I shared in the previous post.
There is a special option called “Software controls WiFi/ Bluetooth coexistence” it can control the ESP32's Bluetooth and Wi-Fi coexistence using software, more details: https://www.espressif.com/sites/default/files/documentation/ESP32_FAQs__EN.pdf