简体中文界面。帖子、指南及政策正文保留原文;未对原文作自动翻译。

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

WillBaker0487 · 2026年7月4日 06:32 UTC

回复讨论
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 条回复

SA
SaraBrooks0809

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
WI
WillBaker0487

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
MA
MayaAbbott0040

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

17
SA
SaraBrooks0809

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
WI
WillBaker0487

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
MA
MayaAbbott0040

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

12
SA
SaraBrooks0809

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
WI
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
MA
MayaAbbott0040

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

17

参与讨论

欢迎来到 Application Robot

所有人都可以阅读论坛。登录或注册后即可发起讨论、回复或上传照片。

忘记密码?

注册账号即表示你同意我们的 使用条款 社区准则。请阅读我们的 隐私政策 ,了解我们如何处理你的信息。