SMPPEX.Pdu.set_mandatory_field

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

set_mandatory_field(pdu, name, value)

View Source

Specs

set_mandatory_field(t(), atom(), any()) :: t()

Sets Pdu mandatory field. New Pdu is returned.

Examples

iex(1)> pdu = SMPPEX.Pdu.new({1, 4, 123}, %{system_id: "system_id"})
iex(2)> pdu1 = SMPPEX.Pdu.set_mandatory_field(pdu, :password, "pass")
iex(3)> SMPPEX.Pdu.mandatory_field(pdu1, :password)
"pass"