Closed shamis closed 6 years ago
To reproduce for unpack path
-ifdef(CONSOLE).
f().
P = <<
"00 00 00 31 00 00 00 04 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "
"14 00 00 01 02 " % {5120,1,[2]}
"14 01 00 02 03 04 " % {5121,2,[3,4]}
"14 02 00 01 05 " % {5122,1,[5]}
>>.
B = << <<(list_to_integer([B1,B2], 16))>> || <<B1:8, B2:8, " ">> <= P >>.
rp(smpp_operation:unpack(B)).
-endif.
Decoding the following hex pdu results in
Encoding the generated json results in the following hex pdu
Decoding that results in the following json