Hi, I’m new to Thunkable. I recently created a login page using Thunkable and Firebase Authentication, and it works great. I’m now sending values from my ESP8266 to the Real-Time Database where they are displayed correctly. However, the problem occurs in the app: I can’t display the values at all. Can anyone help me figure out where I’m going wrong?
Thanks!
Hi zanzaux909, welcome to Thunkable!
Be sure to check out How to ask Great Questions v2.0, the Community Guidelines, and our Getting Started Guide to make the best of your Thunkable Community experience!
Instead of when cloud variables changes, try the when screen opens block.
Thank you so much! I couldn’t solve the problem for hours
Thank you!
No problem. Can’t wait to see the finished app.
Hi Brianl, unfortunately I only receive the value when I start the page for the first time, and then I don’t receive any more values. I would like to update the values from the cloud of Level, Values and Incorrect Values.
Thanks for your help!"
It sounds like the problem is with your userid value. How are you setting that stored variable?
If you check the value of that variable, is it what you expect for that user?
Hi Tatiang,
when the user enters email and password on the login page, I store the Firebase UID. Yes, the value is shown correctly when Home starts, in the “UID test” label with the text set to the stored variable “uid”.
I could solve the problem if I could initialize the “cloud Level” variable followed by the “stored uid” variable. Is it feasible?
This is the data I send from ESP8266:
String uid = “0OaciqwPf1NXnNvHB2RnVrXek5L2”;
Firebase.setString(firebaseData,uid + “/Level”, Level);
it is perfectly received on firebase real time database, the problem is that the “Level” on Thunkable variable must be followed by stored variable uid in order to read the user data and updated when it changes value.