Anyone using Firebase?
Anyone want to??
Is it any good???
Very little information on Mbed which I can understand as we do have Pelion which is really good for FOTA updates but where’s the Android or SteveJobsPhone apps so the everyday person can make good use of this? I can’t see anything here, maybe not looking in the right place, nothing unusual there :).
I now have a working Mbed Firebase example that will ‘post’ and ‘get’ data to and from Firebase, but I could use some help with .json data formats to send multiple data fields. For instance, I want to send to my Firebase database 5 temperature sensor values.
For the moment I can send one ‘name’ with one ‘value’ using this:
sprintf(data,"{\"Temp0\":\"%s\"}",Temp[0]);
I want to send something like this:
sprintf(data,"'{\"%s\" : %s,\"%s\" : %s,\"%s\" : %s,\"%s\" : %s,\"%s\" : %s}'", "Temp0",Temp[0],"Temp1",Temp[1],"Temp2",Temp[2],"Temp3",Temp[3],"Temp4",Temp[4]);
But this doesn’t work, I get this response back from Firebase:
“error” : "Invalid data; couldn’t parse JSON object, array, or value.
Anyone with a bit of .json knowledge may be able to help, would be lovely.
Paul