smppex v2.3.3 SMPPEX.Pdu.NetworkErrorCode View Source

Module for operating with deliver_sm network_error_code parameter.

Link to this section Summary

Functions

Converts octet_string from network_error_code tag to type_code and error_value

Converts network_error_code type and error to octet string

Link to this section Types

Link to this type error_code() View Source
error_code() :: pos_integer()
Link to this type network_error_code() View Source
network_error_code() :: <<_::24>>
Link to this type type_code() View Source
type_code() :: pos_integer()

Link to this section Functions

Converts octet_string from network_error_code tag to type_code and error_value

Example

iex(1)> SMPPEX.Pdu.NetworkErrorCode.decode(<<08,00,01>>)
{8, 1}
Link to this function encode(type_code, error_code) View Source

Converts network_error_code type and error to octet string

Example

iex(1)> SMPPEX.Pdu.NetworkErrorCode.encode(8,1)
<<08,00,01>>