FirebaseExtended / firebase-arduino

Arduino samples for Firebase.
Apache License 2.0
947 stars 494 forks source link

Add support for firestore #342

Open proppy opened 6 years ago

proppy commented 6 years ago

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

JaioSkura commented 6 years ago

Is this already working? has anyone found the way to read/write data on firestore using arduino/esp8266?

grgdlm commented 6 years ago

Bump.. Will try now..

grgdlm commented 6 years ago

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

proppy commented 6 years ago

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

BlueNWild commented 6 years ago

@proppy Could you or someone make an example how to do that?

grgdlm commented 6 years ago

Follow up, could you give us a slight insight on how you would do it? @proppy

proppy commented 6 years ago

@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

Anirudh-A commented 5 years ago

Any updates on this ?

narayanvyas commented 5 years ago

Any updates?

jithinsankar commented 5 years ago

Any updates?

paulocoutinhox commented 5 years ago

Any updates?

oliveirasWell commented 5 years ago

Any updates?

ntngoc96 commented 5 years ago

Any update???

tarasinf commented 4 years ago

Updates please)

ghost commented 4 years ago

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