smppex v2.3.3 SMPPEX.Pdu.Oserl View Source

Module for converting SMPPEX Pdu structs to format used by Oserl library.

Link to this section Summary

Functions

Converts PDU from Oserl format to SMPPEX Pdu

Converts SMPPEX Pdu to Oserl format

Link to this section Types

Link to this type t() View Source
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

Link to this function from(oserl_pdu) View Source
from(oserl_pdu :: t()) :: SMPPEX.Pdu.t()

Converts PDU from Oserl format to SMPPEX Pdu.

Link to this macro network_error_code(args \\ []) View Source (macro)
Link to this macro network_error_code(record, args) View Source (macro)

Converts SMPPEX Pdu to Oserl format.

Unknown optional values are ignored, since Oserl stores them by symbolic names.