Closed jiperez11 closed 5 months ago
You cannot use JsonWriter
like that, you should use the boolean_t
placeholder to make the bool string like the following.
write.create(obj1, "booleanValue", boolean_t(true))
That is because the function create
assign what you passed to the function in the second argument to String buffer of object_t of the first argument.
String buf = true; // -> "1" which is the unexpected behavior of Arduino String class
String buf= boolean_t(true) // -> "true"
This should be done using just bool too as in case of number.
I will update the library to fix this and inform you here.
The library is updated to v1.0.3 and waits for Arduino Library Manager to update.
I am trying to update write.create(obj1, "booleanValue", true); but in firebase RTDB the value 1 comes out