fr10 mode screen gives a failed read a fresh-looking answer

WillBaker0487 · 4 Jul 2026, 06:32 UTC

Reply to discussion
WI
WillBaker0487
Our old SDK gave the dashboard a mode value. The rebuilt environment returns a container with extra information, and a failed request still produces a plausible mode on screen. I want the read-only reporting fixed before anyone trusts that answer. What should the adapter preserve instead?

9 replies

SA
SaraBrooks0809
Replying to WillBaker0487

Start with the documented return contract for the imported version and one saved failure, then show which field or fallback produces the displayed mode; a plausible number is not evidence of a successful read

19 points
WI
WillBaker0487
Replying to SaraBrooks0809

Found the fallback. When the new container isn't decoded, we keep the previous mode and stamp it with the current polling time. The failure information never reaches the screen, so yesterday's answer can look freshly observed.

4 points
MA
MayaAbbott0040
Replying to WillBaker0487

Then don't refresh the observation time on failure. Keep the last value as history, clearly unavailable as a current reading.

17 points
SA
SaraBrooks0809
Replying to MayaAbbott0040

Maya's display distinction needs the adapter to expose success, failure and any valid payload separately, with no guessed mode for unsupported response shapes; otherwise the UI cannot know which case it has

-5 points
WI
WillBaker0487
Replying to SaraBrooks0809

The developer has mapped the supported response for each installed version explicitly. Unknown shapes return a decoding failure. The screen now distinguishes a current mode from a dated last observation, and startup has no mode until a successful read.

9 points
MA
MayaAbbott0040
Replying to WillBaker0487

What happens after a valid read followed by a timeout? That's the sequence the original display lied about.

12 points
SA
SaraBrooks0809
Replying to WillBaker0487

Include reopening with saved history as well, Will; the time must remain the observation's time rather than becoming the moment the dashboard happened to load it

24 points
WI
WillBaker0487
Replying to WillBaker0487

Both sequences pass now, Maya and Sara. Saved failures, malformed responses and valid modes take their documented paths in both environments. The normal read-only check against the intended controller also passed, including unavailable-state display and reopening without a fresh read. The old timestamp-refresh fallback is gone.

11 points
MA
MayaAbbott0040
Replying to WillBaker0487

Good. Keep those dated-history cases in the test run. A green-looking old answer was the defect, not just an awkward container.

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