P4G_RAW_PAYLOAD#

# set
<module-index>/<port-index> P4G_RAW_PAYLOAD [<group_index>] <offset> <length> <content>

# get
<module-index>/<port-index> P4G_RAW_PAYLOAD [<group_index>] ?

Description#

Specify raw payload as hex bytes. This command can be called several times to build a custom payload.

Actions#

set, get

Parameters#

offset: integer, the offset in the payload buffer where data is to be written

length: integer, number of bytes to write

content: hex list, specifying the payload

Example#

# set
input:  0/1 P4G_RAW_PAYLOAD [0] 1 1 0x000102030405060708090A0B000102030405060708090A0B000102030405060708090A0B000102030405060708090A0B
output: <OK>

# get
input:  0/1 P4G_RAW_PAYLOAD [0] ?
output: 0/1 P4G_RAW_PAYLOAD [0] 1 1 0x000102030405060708090A0B000102030405060708090A0B000102030405060708090A0B000102030405060708090A0B