parse_aprs_item

Function parse_aprs_item 

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

Parse an APRS item report ()name!pos... or )name_pos...).

Per APRS 1.0.1 Chapter 11, the name is 3-9 characters terminated by ! (live) or _ (killed). The name is restricted to printable ASCII excluding the terminator characters themselves.

ยงErrors

Returns AprsError::InvalidFormat for any violation of the spec: missing leading ), name outside the 3-9 character range, missing terminator, non-printable ASCII in name, or malformed position data.