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

Creating custom key

Open Almazi opened this issue 7 years ago • 4 comments
trafficstars

Hello, Thanks for this amazing powerful library! I am trying to create custom key when I am sending data from nodeMCU like this:

var booksRef = ref.child("books");
booksRef.child('Almazi').set({
    title: "Arduino Firebase"
}, onComplete);
 
booksRef.child('Niall OHiggins').set({
    title: "MongoDB and Python"
}, onComplete);

Which will create a database like this:

{
    "books" : {
            "Almazi" : {
             "title" : "Arduino Firebase"
            },
            "Niall OHiggins" : {
              "title" : "MongoDB and Python"
        }
    }
}

Where I am setting up the key prior to sending the data. Is it possible to do with friebase-arduino library? Please help me to find out how to do so.

Almazi avatar Aug 21 '18 14:08 Almazi

I want to know about creating custom key too!

Gizmodo avatar Nov 24 '18 13:11 Gizmodo

Let me know if you guys found a solution to this issue please! @Gizmodo @Almazi

magiusdarrigo avatar Mar 28 '20 18:03 magiusdarrigo

Has this issue been resolved? I would like to set a custom key in firebase

Namyalg avatar Dec 18 '20 12:12 Namyalg

i got a same problem too how to set a custom key in firebase ?

ynugi avatar Jan 11 '21 03:01 ynugi