
Example:
"some string"
.
Block Data
Block data (also known as “IEEE blocks”) allows raw binary data to be transmitted. It begins with a
hash symbol (#), followed by a digit indicating the number of decimal digits in the length of the
payload, followed by the decimal digits of the length of the payload, followed by the payload in raw
binary. Note that only data in multiples of eight bits can be represented.
Example:
#210UUUUUUUUU@
The “2” in this example tells us that the length of the payload is a decimal number with two digits.
Those two digits are “10”, which tells us that the payload has exactly ten bytes (
i.e.
eighty bits). Those
ten bytes are in the above example represented by their ASCII characters, which are
“UUUUUUUUU@”. Looking those up in an ASCII table yields the hexadecimal representation
0x55555555555555555540, which is the raw payload.
Integers
Plain integers.
Examples:
•
42
•
-10
Floating-Point Numbers
Floating point values are accepted as numbers with decimal places, optionally with an exponential
suffix, and/or with an appended SI-prefix (kilo or mega; not case sensitive).
Examples:
•
3.141
•
-5.2
•
100e6
•
10.2k
Boolean Flags
Boolean flags can only be 0 or 1; alternatively, “on” or “off”.
Examples:
•
0
•
1
•
off
•
on
BIT-3000 User Manual
31