View Source SMPPEX.Pdu.Oserl (smppex v3.2.1)
Module for converting SMPPEX Pdu structs to format used by Oserl library.
Link to this section Summary
Link to this section Types
@type t() :: {command_id :: non_neg_integer(), command_status :: non_neg_integer(), sequence_number :: non_neg_integer(), [{field_name :: atom(), field_value :: term()}]}
Link to this section Functions
@spec from(oserl_pdu :: t()) :: SMPPEX.Pdu.t()
Converts PDU from Oserl format to SMPPEX Pdu.
@spec to(pdu :: SMPPEX.Pdu.t()) :: t()
Converts SMPPEX Pdu to Oserl format.
Unknown optional values are ignored, since Oserl stores them by symbolic names.