View Source SMPPEX.Pdu.NetworkErrorCode (smppex v3.2.3)
Module for operating with deliver_sm
network_error_code parameter.
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
Types
@type error_code() :: pos_integer()
@type network_error_code() :: <<_::24>>
@type type_code() :: pos_integer()
Functions
@spec decode(network_error_code()) :: {type_code(), error_code()}
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}
@spec encode(type_code(), error_code()) :: network_error_code()
Converts network_error_code type and error to octet string
Example
iex(1)> SMPPEX.Pdu.NetworkErrorCode.encode(8,1)
<<08,00,01>>