Open proppy opened 6 years ago
Is this already working? has anyone found the way to read/write data on firestore using arduino/esp8266?
Bump.. Will try now..
Too lazy to try, what I did was to pass the data to RTDB then cloud functions then oncreate, pass to firestore, it's a lengthy process but it works for now
There is current no support for Firestore in this library, but it should be possible to add bindings for the REST API: https://firebase.google.com/docs/firestore/use-rest-api
@proppy Could you or someone make an example how to do that?
Follow up, could you give us a slight insight on how you would do it? @proppy
@wh1terose this would require writing an Arduino client to talk to the REST API endpoint and reusing the JWT authorization work done on https://github.com/GoogleCloudPlatform/google-cloud-iot-arduino/blob/master/src/jwt.h
Any updates on this ?
Any updates?
Any updates?
Any updates?
Any updates?
Any update???
Updates please)
You can't directly update your arduino data to firestore, but what you can do is making a rest API using firebase hosting and functions it is very easy and it doesnt require any extra costs for example servers. You should watch this video https://www.youtube.com/watch?v=Z8ju93IYZ1A or read this article https://itnext.io/building-a-serverless-restful-api-with-cloud-functions-firestore-and-express-f917a305d4e6
Rest API documentation: https://firebase.google.com/docs/firestore/use-rest-api
JWT auth implementation: https://github.com/GoogleCloudPlatform/google-cloud-iot-arduino/blob/master/src/jwt.h