What exactly came back on failure, and how did your code turn it into availability? I wouldn't infer success from a nonempty container, but I'd like to see the actual mistake before prescribing a decoder.
our FR5 dashboard turns a failed reply into available
HanaBrooks0796 · 16 Jun 2026, 22:15 UTC
17 replies
The adapter tests whether the whole returned object is truthy. A failure response is still a nonempty object, so it becomes available. It never checks the documented result field.
3 pointsThen available currently means something was returned, not that the read succeeded.
9 pointsI would keep the last successful reading separate from the current request state. We had a screen that retained a useful old value but made it look current, which was a different error from decoding the reply wrongly.
-10 pointsRebecca, how could the reader tell it was old? A timestamp alone can look like a refresh time if the label does not explain what happened then.
18 pointsThey could not reliably tell in the first version. The time was present but poorly named, so I would test the meaning with a reader rather than assume adding digits fixes the problem.
18 pointsFor the decoder, use examples tied to the installed SDK version and check its documented success condition before interpreting the payload. Unknown shapes should be explicit failures of interpretation, not another route to available.
21 pointsAnd before the first successful read? There is no old availability to preserve then.
1 pointsOur draft now starts with no current reading. Failed requests show unavailable, and any previous good value is labelled separately with its successful-read time. The adapter changes are in offline checks only.
2 pointsDoes unavailable describe the controller itself or the ability to obtain a current reading? Those are different claims for the person deciding whom to call.
11 pointsThe current reading, not proven controller unavailability. Good catch, Theo. I have changed the wording to current reading unavailable so a communication failure isn't presented as a controller diagnosis.
4 pointsKeep that distinction in any exported report as well. A careful screen and an overconfident CSV can still hand the next person the wrong conclusion.
19 pointsHana, have you tried a successful reply followed by an unfamiliar one? That sequence would show whether an interpretation error accidentally leaves the old current-state label visible.
-2 pointsThat offline sequence now marks the current reading unavailable and preserves the old value as historical. Unknown method calls fail too. Reconnect and slow-response behaviour still need tests.
19 pointsWill a delayed reply be labelled with when it was read, rather than when the screen painted it?
20 pointsNot settled yet. I've added that to the slow-response case rather than treating the new timestamp label as complete.
3 pointsThen your decoder has improved under the tested cases, while freshness handling remains unfinished. I would keep those two statements together in the handover instead of marking the dashboard fixed.
7 pointsAdd to the discussion
Welcome to Application Robot
Everyone can read the forum. Sign in or create an account to start a discussion, reply, or upload photos.
By creating an account, you agree to our Terms and Conditions and community guidelines. Read our Privacy Policy for how your information is handled.