mobizt / Firebase-ESP32

[DEPRECATED]🔥 Firebase RTDB Arduino Library for ESP32. The complete, fast, secured and reliable Firebase Arduino client library that supports CRUD (create, read, update, delete) and Stream operations.
MIT License
415 stars 118 forks source link

HELP Which protocol does esp32 use for pushing data to Firebase? #31

Closed mixaobo closed 5 years ago

mixaobo commented 5 years ago

Sorry this question isnt about your bug. This is question for which protocol do you use to push data. In the case of Firebase Realtime Database, clients will be connected to the database and will maintain an open bidirectional connection via websockets i found this one said Firebase use websocket to receive or push data to client. in you code, i see you use HTTP protocol. i have confuse a bit.

Could you confirm which one is correct?

mobizt commented 5 years ago

Google does not provide the websocket end point to connect to Firebase server directly. They provide the APIs (in SDK) for all their Firebase products included RTDB, for various platforms e.g JavaScript, Android, iOS, REST etc.

Only REST APIs are suitable for internet capable devices with limited resource which is not depending on platform or OS.

That's is the only approach where we use to communicate to Firebase using HTTP request to the REST API end point.

mrdc commented 4 years ago

@mixaobo

i see you use HTTP protocol.

we use to communicate to Firebase using HTTP request

BTW data is send via HTTPS to Firebase and back.