mobizt / Firebase-Arduino-WiFiNINA

Firebase Arduino Library for ARM/AVR WIFI Dev Boards based on WiFiNINA
MIT License
64 stars 12 forks source link

Can't get examples to execute #45

Closed oserani closed 1 year ago

oserani commented 1 year ago

Hi there - trying to run the basic examples to run but I keep getting error 5 (Connection Refused) consistently. No matter what I do.

I am using the following for the database URL

define DATABASE_URL "poolmonitor-b661a-default-rtdb.firebaseio.com" //.firebaseio.com or ..firebasedatabase.app

and the database secret provided by google.

Wifi connects just fine, but I am struggling with getting a connection to firebase

mobizt commented 1 year ago

See https://github.com/mobizt/Firebase-Arduino-WiFiNINA/issues/18

oserani commented 1 year ago

Thanks! Renewing the "secret" seemed to do it. Do we have to worry about the "deprecation" of database secrets comment on the firebase console. Thanks again!

mobizt commented 1 year ago

The database secret is obsoleted for years.

I hope Google will not revoke this database access method. If this method was revoked, some Google services may not be able to access the Firebase RTDB e.g., Google Apps Script.

I cannot add Authentication support for this library as in my other Firebase libraries because the limited memory and flash space of AVR based Arduino UNO WiFi Rev2.

oserani commented 1 year ago

Gotcha. I’m a total newbie, but I have a raspberry pico w stashed somewhere.  Maybe one day I’ll try it on that.  Thanks again OrlandoOn Apr 19, 2023, at 21:19, Suwatchai K. @.***> wrote: The database secret is obsoleted for years. I hope Google will not revoke this database access method. If this method was revoked, some Google services may not be able to access the Firebase RTDB. I cannot add Authentication support for this library as in my other Firebase libraries because the limited memory and flash space of AVR based Arduino UNO WiFi Rev2.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>