SMPPEX.Pdu.NetworkErrorCode (smppex v3.0.2) 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

Specs

error_code() :: pos_integer()

Specs

network_error_code() :: <<_::24>>

Specs

type_code() :: pos_integer()

Link to this section Functions

Specs

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

Specs

Converts network_error_code type and error to octet string

Example

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