You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for taking so long to get back to you!
So this error has only appeared recently? Before the update the command worked?
If it did not work, then maybe my interpretation of the JSON response was incorrect and an easy fix would just be to change the Response type to be an int.
From what I can see, the example response taken from a test camera seems to be an int, as shown here.
Thus, I believe the easiest course of action is to just change the type in the struct from a bool to an inthere.
I apologize for not getting back sooner as I see you have already submitted a PR to address this issue, and I thank you for your hard work 🙇♂️
When querying an RLC-820A on the latest firmware the response from the camera is that the wifi is
0
and not a booleanfalse
I have written a fairly ugly function to manage this here - https://github.com/parkervcp/reolinkapigo/blob/update_deviceinfo/internal/pkg/models/system.go#L53
I am not saying it's "the" fix to use but it is "a" fix that works right now. It handles both the int and bool values and errors on any other value.
example data from my camera
example code:
error:
The text was updated successfully, but these errors were encountered: