ESP32 Firebase Library Authentication Data Types not working #236
Unanswered
dartronixeng
asked this question in
Q&A
Replies: 1 comment 3 replies
-
You should post the complete compilation error for what wrong with your code because that is impossible for that simple thing that should not be happen otherwise you are trying to do something that is forbidden the C++ rules. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I upgraded to the latest library. My previous version which is a bit old allowed me to sign into firebase with the following command firebase,begin(fbHOST,fbAUTH) where fbHOST and fbAUTH are char arrays with 64 elements each terminated with a null character. This worked great because the end user would populate this field via a BLE app based upon the account being used.
The new library command is set up as Firebase.begin(&config, &auth) where the two values are populated with config.signer.tokens.legacy_token = DATABASE_SECRET; and config.database_url = DATABASE_URL; where DATABASE_SECRET and DATABASE_URL are fixed values in a #define statement such as #define DATABASE_SECRET "12345ABCDefg".
How can I dynamically change the url and secret key values to connect to different firebase accounts and not have them hard coded into the ESP32? I have tried several different approaches and get errors upon compiling. Every attempt generates an error that it is not a string.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions