60
Atmel AVR2052
8200M-AVR-11/11
Table 14-2.
Additional field format.
Sub-field name
Length
Description
Field type
1 byte
Type of the additional field. The possible values are
listed below
Field size
1 byte
Size of the field data in bytes. Note: this size does not
include the field type and field size sub-fields
Field data
<Variable> The data depend on the field type, the size of the data
is provided by the field size
The following types of additional fields are defined:
Table 14-3.
Additional field types.
Field type
Description
0x01
Sensor data for board type 1. Used for MeshBean boards
0x20
Node name
Please note that in the current version of WSNDemo, devices send additional fields of
type 0x01 (sensor readings for boards of type 1) only. Unrecognized additional fields
are discarded by the WSNMonitor application. The field data format for different field
types are described in
and
Table 14-4.
Field data for type 0x01: Sensor data for boards of type 1.
Offset
Length
Data type
Description
0
4 bytes
Unsigned int
Battery status reading
4
4 bytes
Unsigned int
Temperature sensor reading
8
4 bytes
Unsigned int
Light sensor reading
Table 14-5.
Field data for type 0x20: Node name.
Offset
Length
Description
0
<Variable> Zero-terminated ASCII string