build_aprs_message_checked

Function build_aprs_message_checked 

Source
pub fn build_aprs_message_checked(
    source: &Ax25Address,
    addressee: &str,
    text: &str,
    message_id: Option<&str>,
    path: &[Ax25Address],
) -> Result<Vec<u8>, AprsError>
Expand description

Like build_aprs_message but returns an error when the text exceeds the APRS 1.0.1 67-byte limit instead of silently truncating.

ยงErrors

Returns AprsError::MessageTooLong if text.len() > 67.