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

Cloud Firestore #76

Closed
agusfaudin opened this issue Jan 11, 2020 · 11 comments
Closed

Cloud Firestore #76

agusfaudin opened this issue Jan 11, 2020 · 11 comments

Comments

@agusfaudin
Copy link

agusfaudin commented Jan 11, 2020

How to change program use esp8266 from realtime database to be cloud firestore?
give me clue problem solution
thanks

@mobizt
Copy link
Owner

mobizt commented Jan 11, 2020

It's not possible right now due to the following reasons.

  1. Cloud Firestore authentication is different than RTDB, it requires custom or OAuth2 tokens. This required more works which I successfully done it for esp32 but not for esp8266.

  2. Cloud Firestore Stream was not support via REST API. It supported via gRPC framewok. Which gRPC is not supported in esp8266 and esp32 now (there is closed source of gRPC library for esp32 built for esp32 google voice assistance SDK but we can't customize it for Firestore).

@mobizt mobizt closed this as completed Jan 11, 2020
@SERIDJ
Copy link

SERIDJ commented Jan 17, 2020

hi, please we can use gRpc server with Nanopb or samth with ESP32 DEVICE ?

@mobizt
Copy link
Owner

mobizt commented Jan 17, 2020

@SERIDJ

Due to gRPC is based on protobuf then you need to compile all protobuf dependencies too. I also try nanopb to compile proto files but some proto files can't compile.

Finally I use protobuf-c to compile and generate .c and .h instead.

I can't see the open source of gRPC framework that supports ESP32 for now, only some close source that compile only for google voice assistance.

Still no further update from esp team
https://www.esp32.com/viewtopic.php?t=9399

@SERIDJ
Copy link

SERIDJ commented Jan 17, 2020

@mobizt thanks for ur reply

yes me to iam using **nanopb ** and i have probleme when i compile this line :

bool status = pb_encode(&stream, TestMessage_fields, &message);

from : https://medium.com/grpc/efficient-iot-with-the-esp8266-protocol-buffers-grafana-go-and-kubernetes-a2ae214dbd29

what u thing its possible to send data to visual studio server grpc with protobuf-c from esp32 ?

@mobizt
Copy link
Owner

mobizt commented Jan 17, 2020

If that system (PC, device or server) can install gRPC and protobuf. But gRPC is not available for esp32 then nothing to do, we can't send/receive message to/from gRPC server.

@SERIDJ
Copy link

SERIDJ commented Jan 17, 2020

yes yes , but what u thing with node.js and python in esp32 ?

@mobizt
Copy link
Owner

mobizt commented Jan 17, 2020

node.js in esp32, no
python in esp32 is only micro python.

@SERIDJ
Copy link

SERIDJ commented Jan 20, 2020

hi, @mobizt

i found PJON-gRPC what u thinks i can send data to grpc visual studio server ???

https://github.com/Halytskyi/PJON-gRPC

@Patys
Copy link

Patys commented Jan 21, 2020

@mobizt
Is it possible to add support to firestore with https://www.microchip.com/wwwproducts/en/ATECC608A chips? They can generate and store keys required for auth to Google IoT and AWS IoT. Maybe we can extend lib to support it?

@mobizt
Copy link
Owner

mobizt commented Jan 22, 2020

@SERIDJ
If you just ask the possibilities to implement your own client-server comunication using gRPC, I can't help or advice on that.

I focus only on how to use gRPC for Google Firestore in esp8266 or esp32 device.

@mobizt
Copy link
Owner

mobizt commented Jan 22, 2020

@Patys
It may possible and need more study.

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

No branches or pull requests

4 participants