Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with Firestore? #126

Closed
BorjanKalinoski opened this issue Aug 4, 2020 · 1 comment
Closed

Integration with Firestore? #126

BorjanKalinoski opened this issue Aug 4, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@BorjanKalinoski
Copy link

I was wondering if there will be integration in this library with Firestore anytime soon. I know that it is possible to send and receive data from Firestore using the REST API, but I am mostly interested in listening to data changes in Firestore, just like the Stream example in this library for the Real-Time database.

So my question is is there a plan to integrate this feature in the near future?

Is there a possibility for me to wrap around the REST API and make a Stream-like feature? I have been lurking on forums and google for a few days and i just can't find any example of how to implement this, maybe I just need learn and search more.

I know there are workarounds like using a web server or cloud functions, but I am interested in direct communication between Firestore and ESP.

Best Regards,
Borjan

@BorjanKalinoski BorjanKalinoski added the enhancement New feature or request label Aug 4, 2020
@mobizt
Copy link
Owner

mobizt commented Aug 4, 2020

The Cloud Firestore supports the REST API unless stream like feature are not available due to poor performance and Firebase team decided to remove this feature.

The only possible method that suitable for no Firebase SDK installation is the RPC (gRPC) which is not currently available in embedded device.

The other problem is database secret can't use in the Cloud Firestore, the auth or custom token is required and need the SSL/TLS library for key encryption and signing. This can be done in ESP32 with mbed TLS which can't do this in ESP8266 with BearSSL.

Then Cloud Firestore with realtime feature (using gRPC) is not possible in ESP8266.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants