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

FR5 polling wrapper is displaying a failed request as a reading

LeoCarter0971 · 2026年5月5日 22:02 UTC

回复讨论
LE
LeoCarter0971
Changed SDK in our bench setup. Old wrapper expected one status value; the replacement gives a container with extra information. A failed request now reaches the display as a plausible reading. I've stopped using that screen for the trial. Need to untangle the parsing before restoring it.

10 条回复

JA
JasperChan1073

Capture successful and failed returns from that exact installed version, with the documented return contract beside them. Check success before extracting the reading. Don't select the first numeric field simply because it resembles the value your old wrapper used.

15
LE
LeoCarter0971

Saved both. The wrapper's fallback takes a numeric field after the old extraction fails. That explains the plausible number. Removing it and testing the parser offline first.

16
WI
WillCarter1009

What happens to the previous successful reading when the next request fails? Leaving it unchanged can make the screen look current even after you remove the bad fallback.

16
IM
ImranAdams0131

Had a test substitute hide a version mismatch on our teaching setup. Use the recorded returns here, not a fake response invented to suit the new parser

7
JA
JasperChan1073

Include malformed and missing data too. A successful request with no usable reading still shouldn't paint a current status. Or rather, request success and a valid reading need separate checks.

6
LE
LeoCarter0971

Will, it currently keeps the old value with no stale indication. Added that to the offline cases. Jasper, missing data now has its own expected unavailable state rather than falling through to a number.

6
WI
WillCarter1009

Show the time of the last valid observation if you retain it for reference. Make its age and the failed update visible; don't require the operator to infer them from a stationary number.

11
IM
ImranAdams0131

And don't catch every exception as an ordinary polling failure. You'll hide the next programming error that way

4
LE
LeoCarter0971

Parser tests now separate valid readings, reported request failures and invalid responses. Unexpected parser errors stay visible in diagnostics. The proposed screen marks retained data as old, but the operator review hasn't happened yet. Still offline.

6
JA
JasperChan1073

When you review that screen, include startup before any valid reading exists. There isn't an old value to label in that case (and zero shouldn't quietly stand in for one).

19

参与讨论

欢迎来到 Application Robot

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

忘记密码?

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