Improve device status reliability & Insta360 connection handling
MRs
Description
Device connection statuses were frequently flickering or delayed during testing. Some issues may originate from the Stratux side, but Whitebox needs to present device states more reliably and update instantly. Examples observed:
- Insta360 shown as “connected” while powered off
- Stratux is showing a valid GPS location, while Whitebox reported the GPS/location as offline
- Status lagging or rapidly switching between states
- Related issues also noted in pre-tests (see !182 (closed), comment 2853431464).
Additionally, the Insta360 connect/disconnect toggle worked only about 50% of the time. In many cases, the toggle reverted to its previous state and required clicking again to successfully change the connection state.
Scope
- Investigate causes of device status flickering or delayed updates.
- Improve status polling, event handling, and UI updates to ensure real-time and accurate device state representation.
- Fix inconsistencies between Stratux-reported statuses and Whitebox UI (e.g., GPS, traffic, camera).
- Address reliability issues with the Insta360 connect/disconnect toggle so the UI state always reflects the actual connection state.
- Review and incorporate findings from earlier related issues (e.g., !182 (closed)).
Edited by Avinash