Skip to content

Live sensor connection type hardcoded as TODO #10

@SL-Mar

Description

@SL-Mar

Problem

In api/live.py line 33, the connection type is hardcoded as "serial" with a TODO comment: # TODO: track actual type. The sensor config supports serial, TCP, UDP, and simulator modes but the status endpoint always reports "serial".

Impact

  • Live status endpoint returns misleading connection info
  • Harder to debug sensor connection issues
  • WebSocket clients can't display actual connection mode

Steps to fix

  1. Store the active connection type in the sensor state
  2. Update /api/live/status to return the actual type
  3. Track changes when switching connection modes

Files

  • api/live.py (lines 33, 120-160)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Priority: highbackendBackend relatedbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions