pub fn parse_digipeater_path(s: &str) -> Result<Vec<Ax25Address>, AprsError>Expand description
Parse a digipeater path string like "WIDE1-1,WIDE2-2" into addresses.
Accepts comma-separated entries, each of the form CALLSIGN[-SSID].
Whitespace around entries is trimmed. An empty string returns an empty
path (direct transmission with no digipeating).
§Errors
Returns AprsError::InvalidPath if any entry has an SSID that is
not a valid 0-15 integer, or if the callsign is empty or longer than
6 characters.
§Examples
use kenwood_thd75::aprs::parse_digipeater_path;
let path = parse_digipeater_path("WIDE1-1,WIDE2-2").unwrap();
assert_eq!(path.len(), 2);
assert_eq!(path[0].callsign, "WIDE1");
assert_eq!(path[0].ssid, 1);