parse_aprs_data

Function parse_aprs_data 

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

Parse any APRS data frame from an AX.25 information field.

Dispatches based on the data type identifier (first byte) to the appropriate parser. For Mic-E positions, use crate::mic_e::parse_mice_position directly since it also requires the destination address.

Prefer crate::mic_e::parse_aprs_data_full when the AX.25 destination address is available — it handles all data types including Mic-E.

§Supported data types

ByteTypeParser
!, =Position (no timestamp)parse_aprs_position
/, @Position (with timestamp)parse_aprs_position
:MessageInline
>StatusInline
;ObjectInline
)ItemInline
_Positionless weatherInline
`, 'Mic-EReturns error (use crate::mic_e::parse_mice_position)

§Errors

Returns AprsError if the format is unrecognized or data is invalid.