firebase-arduino icon indicating copy to clipboard operation
firebase-arduino copied to clipboard

How to create child and sub child in firebase database from arduino ide

Open kunalrmn opened this issue 6 years ago • 2 comments
trafficstars

i am using FirebaseArduino.h library to send data on firebase database, but i have trouble in creating subchild for my project. we can create multiple child like, Firebase.set("Value1",0); Firebase.set("Value2",1); it creates, mydatabase |-Value1:0 //child |-Value2:1 //child

But i want to create like this mydatabase |-User1 //child | --Value1:0 //subchild | --Value2:1 //subchid

like we use command in Android Studio myRef.child("User1").setValue(0);

kunalrmn avatar Mar 09 '19 11:03 kunalrmn

hey, I solved my problem writing Firebase.set("User1/Value1",0); Firebase.set("User1/Value2",1); solved my problem..

it creates |-User1 | --Value1:0 | --Value2:1

kunalrmn avatar Mar 09 '19 11:03 kunalrmn

how can i get value of child

database

from this database these are bool values

Puneetkumarpal avatar Apr 13 '20 13:04 Puneetkumarpal