Comments

Here is some DecoderScript used in decoding sensor commands and responses:

/*

Sensor number. This is a one-byte field. We display it in decimal and verify that it is valid (i.e. in the range 1 to 32).

*/

FIELD sensor_number (Fixed 1) (Decimal) "Sensor Number" VERIFY (FieldIsBetween 1 32)

/* Sensor value. This is a two-byte field. */

FIELD sensor_value (Fixed 2) (Decimal) "Sensor Value"

The new element is the comment. Comments are written as in the C++ programming language, either starting with "/*" and ending with "*/" or starting with "//" and ending at the end of the line. Comments serve solely to aid people reading the decoder; the protocol analyzer ignores them.