Hi,
I would like to send temperature and humidity to a Firebase RealTime Database, using the time as TAG and the values in a list of floats.
Every hour I would like to send the same data, using the new time as TAG.
Is it possible?
How have I to structure data to send them together in a call to Firebase.setFloat()?
If you want people to help you, you will need to help them first. Please have a look at the "How to post ...". Its at the beginning of each sub forum. A good post is the best way to get attention.
Post your code. Use code tags.
provide schematic if its hardware related
name the exact products your are using
provide links to datasheets of non-Arduino components
provide links to non-Arduino libraries
Show that you have done some work by describing what your sketch is supposed to do and what does not work.
Hi,
being this sub forum on Programming questions, I thought it was not necessary to specify the kind of Arduino used or the schematics and so on. Sorry for that.
Actually my question is about how to write the command Firebase.setFloat(FirebaseData, Path, data) and precisely if the 'data' parameter can be an array of floats instead of being a single float number.
I use MIT App Inventor 2 or Kodular to save and read data from Firebase and its easy there to create a list, save a list to Firebase with a TAG and read the list from that TAG.
In Firebase I would create a node for each date and under that node, for each hour of that day I would like to save temperature and humidity, read from DHT11 sensor, sent in a list.
So the time should be the tag and the list should be the value.
archet:
being this sub forum on Programming questions, I thought it was not necessary to specify the kind of Arduino used or the schematics and so on. Sorry for that.
No, need to be sorry. If you had added a sketch and said
the following sketch sends data to a Firebase
it runs on an Arduino XXX
the data does is not send successful
I use the following library ...
to use Firebase you have to create a free user account .. or whatever
Someone could actually try this or have a look at the library source code, read the documentation ...
There are plenty of people here who love solving a good puzzle, but without good information it is hard to help.