Encodes one optional parameter (TLV): a big-endian tag, a big-endian length, then the value.
The tag and value to encode.
The encoded TLV bytes.
1.0.3
import { encodeTlv, Tag } from 'edgeport/smpp';const bytes = encodeTlv({ tag: Tag.MessagePayload, value: new TextEncoder().encode('hi') }); Copy
import { encodeTlv, Tag } from 'edgeport/smpp';const bytes = encodeTlv({ tag: Tag.MessagePayload, value: new TextEncoder().encode('hi') });
Encodes one optional parameter (TLV): a big-endian tag, a big-endian length, then the value.