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: how to check the internet status thorugh firebase esp32 lib #37

Closed vamsikrishnaA9 closed 4 years ago

vamsikrishnaA9 commented 4 years ago

hi there, i need to check the live internet status. I ve gone through the library. I found httpCode and httpConnected () functions are for checking status server connection. But i failed to get the live internet check through those functions. Is there any particular function availble to know the internet check? Thank you.

mobizt commented 4 years ago

For internet status, you need to check by yourself via ping or create http request to some sever e.g. google.com.

The httpCode and httpConnected values change upon the Firebase operation (get, set, push, delete, update and stream).

I recommend ping (use library or esp ping function).

vamsikrishnaA9 commented 4 years ago

Yeah got it. thanks mate

On Mon, Oct 28, 2019, 4:54 PM mobizt notifications@github.com wrote:

For internet status, you need to check by yourself via ping or create http request to some sever e.g. google.com.

The httpCode value changes upon the Firebase operation (get, set, push, delete, update and stream).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mobizt/Firebase-ESP32/issues/37?email_source=notifications&email_token=AL7HXTT3BZE26NDNKZ2C4KTQQ3DWFA5CNFSM4JFYZCIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECMRLLI#issuecomment-546903469, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7HXTQY3LUEY66RW7T3QULQQ3DWFANCNFSM4JFYZCIA .