our FR5 dashboard turns a failed reply into available

HanaBrooks0796 · 16 Jun 2026, 22:15 UTC

Reply to discussion
HA
HanaBrooks0796
The replacement SDK returns a container where our read-only training dashboard used to expect one status value. A failed request still produces a plausible availability display. I want the adapter to establish what the reply means, not find a reassuring value somewhere inside it.

17 replies

OW
OwenChen1182
Replying to HanaBrooks0796

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.

21 points
HA
HanaBrooks0796
Replying to OwenChen1182

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 points
EL
EllaBrown0903
Replying to HanaBrooks0796

Then available currently means something was returned, not that the read succeeded.

9 points
RE
RebeccaBrooks0865
Replying to HanaBrooks0796

I 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 points
TH
TheoChen1193
Replying to RebeccaBrooks0865

Rebecca, 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 points
RE
RebeccaBrooks0865
Replying to TheoChen1193

They 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 points
OW
OwenChen1182
Replying to HanaBrooks0796

For 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 points
EL
EllaBrown0903
Replying to RebeccaBrooks0865

And before the first successful read? There is no old availability to preserve then.

1 points
HA
HanaBrooks0796
Replying to EllaBrown0903

Our 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 points
TH
TheoChen1193
Replying to HanaBrooks0796

Does 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 points
HA
HanaBrooks0796
Replying to TheoChen1193

The 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 points
OW
OwenChen1182
Replying to HanaBrooks0796

Keep 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 points
RE
RebeccaBrooks0865
Replying to HanaBrooks0796

Hana, 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 points
HA
HanaBrooks0796
Replying to RebeccaBrooks0865

That 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 points
EL
EllaBrown0903
Replying to HanaBrooks0796

Will a delayed reply be labelled with when it was read, rather than when the screen painted it?

20 points
HA
HanaBrooks0796
Replying to EllaBrown0903

Not settled yet. I've added that to the slow-response case rather than treating the new timestamp label as complete.

3 points
TH
TheoChen1193
Replying to HanaBrooks0796

Then 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 points

Add 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.

Forgot your password?

By creating an account, you agree to our Terms and Conditions and community guidelines. Read our Privacy Policy for how your information is handled.