Encodes a submit_sm PDU.
submit_sm
Writes the full mandatory body in spec order, prefixing short_message with its length byte, then appends any TLVs. A body longer than MAX_SHORT_MESSAGE is rejected; the session layer moves oversized messages into a message_payload TLV instead.
short_message
message_payload
The sequence_number.
sequence_number
The addresses, flags, and message body.
The complete submit_sm PDU bytes.
If shortMessage exceeds MAX_SHORT_MESSAGE octets.
shortMessage
1.0.3
import { encodeSubmitSm } from 'edgeport/smpp';const bytes = encodeSubmitSm(2, { sourceAddr: '12065550100', destinationAddr: '12065550111', shortMessage: new TextEncoder().encode('hello')}); Copy
import { encodeSubmitSm } from 'edgeport/smpp';const bytes = encodeSubmitSm(2, { sourceAddr: '12065550100', destinationAddr: '12065550111', shortMessage: new TextEncoder().encode('hello')});
Encodes a
submit_smPDU.Writes the full mandatory body in spec order, prefixing
short_messagewith its length byte, then appends any TLVs. A body longer than MAX_SHORT_MESSAGE is rejected; the session layer moves oversized messages into amessage_payloadTLV instead.