Parameter Data Types
A parameter is specified using one of the following formats:
byte
(B
): 8-bit decimal integer, range [0 to 255].integer
(I
): 32-bit decimal integer, range [-2,147,483,648 to 2,147,483,647].long
(L
): 64-bit decimal integer, range [-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807].hex
(H
): two hexadecimal digits prefixed by0x
, e.g. 0xF7. Some parameters consist of multiples ofhex
, for example 0x1234. They are denoted ashex<n>
orH..H
, where<n>
is the number ofH
. For example, MAC address is of typehex6
(HHHHHH
), and IPv6 address is of typehex16
(HHHHHHHHHHHHHHHH
).string
(S
): printable 7-bit ASCII characters enclosed in''
, e.g. ‘’A string’’. Characters with values outside the 32-126 range and the''
character itself are specified by their decimal value, outside the quotation marks and separated by commas, e.g. ‘’A line’’, 13, 10, ‘’and the next line’’.owner
(O
): a short string used to identify an owner, used for the reservation.address
(A
): a dot-separated IPv4 address, e.g. 192.168.1.200.integer list
(I*
): Some commands allow a variable number of parameters ofinteger
, and they are written with spaces in between.byte list
(B*
): Some commands allow a variable number of parameters ofbyte
, and they are written with spaces in between.hex list
(H*
): Some commands allow a variable number of parameters ofhex
, and multiple bytes can be specified using a single0x
prefix, e.g. 0xF700ABCD2233 , without spaces.address list
(A*
): Some commands allow a variable number of parameters ofaddress
, and they are written with spaces in between.
Note
hex<n>
(H.....H
) is different from hex list
(H*
). The length of a parameter of type hex<n>
(H.....H
) is determined, while the length of a parameter of type hex list
(H*
) is dynamically dependent on the current status.
Finally, certain commands are actually integers, but use coded names for special numeric values to enhance readability, e.g. (0=OFF,1=ON
).