Closed juliusfelix12 closed 2 years ago
You should read the document. https://github.com/mobizt/Firebase-ESP32/tree/master/src#set-child-nodes-key-and-value-using-firebasejson-object-to-the-defined-database-path
You can't set the serialized JSON string to that function which accepts only FirebaseJson object.
The library has built-in JSON builder and parser, FirebaseJson to serialize and deserialize JSON which is easier and efficient.
You should update the library to latest version to use the new core of FirebaseJson which is powered by the best JSON parser, cJSON.
thankyou sir for helping!
sir @mobizt , i already read and apply code from the documentation like this and it works!
but why it doesn't generate random key like this as a child for every read data??
my firebase console look like this, doesnt generate random key like the above pict
pls help thanks
You can use pushJSON to push the new random key name to that node.
thanks a lot sir!!!
Hi sir, why i can't send JSON string to firebase, which part i do wrong?? I used to read the documentation and still not find the solution, please help thankyou.![image](https://user-images.githubusercontent.com/71480360/131304249-cb5e84e2-42fd-4880-98a5-c87c5b211f16.png)
I expect the output on firebase will be like this![image](https://user-images.githubusercontent.com/71480360/131304441-e719580b-3f91-4692-bdf5-ee5199d84eb0.png)