-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getInt and setInt #35
Comments
All Firebase call functions return the operation status (boolean), true for success and false for failed. To get data, you can use Check this example, for basic useage. |
So i have to use something like this for every int i read?
for my usage would be
I have a bit hard time understanding this library :) |
Yes, you can check the data type before get its value which ensure that you will not mis the resolution of numeric data in case of int, float and double. In addition, the usual function e.g. myValue = MyFunction(); as in other Firebase library that returns the data directly is not good practice when it processes the http request and response tasks inside the function which can be failed, unreachable, invalid request or many error reasons which user will get undesired and questionable value from that function. |
Thank you i think i figure it out. It need a little effort but its good now. I wanted to avoid fingerprint so i used this library. Nice work and keep it up :) |
Hi can someone help me to get int from firebase.
This is code i am using for this
R = Firebase.getInt(firebaseData, "DomeLED/Color/r");
Where R is my global variable of Int type, firebaseData is object, and after is the path for reading the value from
it work perfectly for boolean type, but not for integer or float
The text was updated successfully, but these errors were encountered: