SMPPEX.Pdu.optional_fields

You're seeing just the function optional_fields, go back to SMPPEX.Pdu module for more information.

Specs

optional_fields(t()) :: map()

Get the whole set of optional(TLV) fields as a map.

Examples

iex(1)> pdu = SMPPEX.Pdu.new(4, %{short_message: "hi"}, %{0x0424 => "hello"})
iex(2)> SMPPEX.Pdu.optional_fields(pdu)
%{0x0424 => "hello"}