SMPPEX.Pdu.mandatory_field
You're seeing just the function
mandatory_field
, go back to SMPPEX.Pdu module for more information.
Specs
Get Pdu mandatory field. If Pdu does not have the field, nil
is returned.
Examples
iex(1)> pdu = SMPPEX.Pdu.new({1, 4, 123}, %{system_id: "system_id"})
iex(2)> SMPPEX.Pdu.mandatory_field(pdu, :system_id)
"system_id"
iex(3)> SMPPEX.Pdu.mandatory_field(pdu, :short_message)
nil