pub struct AprsMessage {
pub addressee: String,
pub text: String,
pub message_id: Option<String>,
pub reply_ack: Option<String>,
}Expand description
An APRS message (data type :) addressed to a specific station or
group.
Format: :ADDRESSEE:message text{ID or, with the APRS 1.2 reply-ack
extension, :ADDRESSEE:message text{MM}AA where MM is this
message’s ID and AA is an ack for a previously-received message.
- Addressee is exactly 9 characters, space-padded.
- Message text follows the second
:. - Optional message ID after
{(for ack/rej). - Optional reply-ack after
}(APRS 1.2).
The TH-D75 displays received messages on-screen and can store up to 100 messages in the station list.
Fields§
§addressee: StringDestination callsign (up to 9 chars, trimmed).
text: StringMessage text content.
message_id: Option<String>Optional message sequence number (for ack/rej tracking).
reply_ack: Option<String>Optional APRS 1.2 reply-ack: when the sender bundles an
acknowledgement for a previously-received message into a new
outgoing message. Format on wire is {MM}AA where AA is the
acknowledged msgno.
Implementations§
Source§impl AprsMessage
impl AprsMessage
Sourcepub fn kind(&self) -> MessageKind
pub fn kind(&self) -> MessageKind
Classify this message by addressee / text pattern per APRS 1.0.1 §14 and bulletin conventions.
Trait Implementations§
Source§impl Clone for AprsMessage
impl Clone for AprsMessage
Source§fn clone(&self) -> AprsMessage
fn clone(&self) -> AprsMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more