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
| Byte | Type | Parser |
|---|---|---|
!, = | Position (no timestamp) | parse_aprs_position |
/, @ | Position (with timestamp) | parse_aprs_position |
: | Message | Inline |
> | Status | Inline |
; | Object | Inline |
) | Item | Inline |
_ | Positionless weather | Inline |
`, ' | Mic-E | Returns error (use crate::mic_e::parse_mice_position) |
§Errors
Returns AprsError if the format is unrecognized or data is invalid.