-
Hi, I have difficutlties to set a float value to firebase. Any value I set results in a "0". Doing the same for "Int" values works fine. This is the sligtly modified example:
The serial console says Connected with IP: *.*.*.* Firebase Client v4.4.12 Set int... ok Set float... ok But the value in firebase remains 0. Can someone help me here? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
It is not possible in any way that will be the issue. You have to debug your code. |
Beta Was this translation helpful? Give feedback.
-
I see that you are using library incorrectly. Please read the examples comments carefully and follow. |
Beta Was this translation helpful? Give feedback.
-
Firebase-ESP32/examples/Basic/Basic.ino Lines 138 to 143 in 891b780 |
Beta Was this translation helpful? Give feedback.
-
Your code above is the wrong usage. Why it's not relevant? You should try the basic example first. And post the result. Library works on other compiler for other Arduino devices, the float or double is not the issue. |
Beta Was this translation helpful? Give feedback.
-
I don't get anything wrong because of your post doesn't clear. And the test result of the basic example is enough to show that is the bug or C++ incompatibility in GCC in ESP32C2 environment that converts float to string incorrectly. I don't have plan to fix this because it works for almost platforms, but you can try a better new library. |
Beta Was this translation helpful? Give feedback.
It is not possible in any way that will be the issue.
And I don't see any issue from my test.
You have to debug your code.