Skip to main content

decode

Function decode 

Source
pub fn decode(bytes: &[u8]) -> Result<Pdu, PduError>
Expand description

Decode PDU octets with the SMSC prefix. TP-MTI 00 is read as SMS-DELIVER, 01 as SMS-SUBMIT, 10 as SMS-STATUS-REPORT — the directions a modem hands to the host.