parse_aprs_telemetry

Function parse_aprs_telemetry 

Source
pub fn parse_aprs_telemetry(info: &[u8]) -> Result<AprsTelemetry, AprsError>
Expand description

Parse an APRS telemetry report (T#seq,v1,v2,v3,v4,v5,dddddddd).

Per APRS 1.0.1 §13.1 a telemetry frame has exactly 5 analog channels and 1 digital channel. We tolerate fewer analog channels (missing channels become None) but reject frames with more fields than the spec allows — those are almost certainly malformed.

§Errors

Returns AprsError::InvalidFormat for malformed input: missing T# prefix, non-integer analog values, non-binary digital digits, or more than 7 comma-separated fields.