Skip to main content

encode_submit

Function encode_submit 

Source
pub fn encode_submit(
    req: &SubmitRequest,
) -> Result<Vec<(usize, String)>, PduError>
Expand description

Encode an SMS-SUBMIT, splitting into concatenated parts when needed (which requires SubmitRequest::concat_ref).

Returns (tpdu_len, hex) per part: tpdu_len is the <length> for AT+CMGS (TPDU octets, SMSC prefix excluded); hex is the full PDU to send after the prompt.