Viewer

org.bluetooth.characteristic.temperature_measurement

Name: Temperature Measurement

Type: org.bluetooth.characteristic.temperature_measurementDownload / View

Assigned Number: 0x2A1C

Abstract:

The Temperature Measurement characteristic is a variable length structure containing a Flags field, a Temperature Measurement Value field and, based upon the contents of the Flags field, optionally a Time Stamp field and/or a Temperature Type field.

Summary:

The flags is the first field sent followed by the Temperature Measurement Value.

Examples:

If the value of bit 1 of the Flags field is 0 and bit 2 is 0, the structure of the Temperature Measurement characteristic consists of two fields in this order; Flags and Temperature Measurement Value.

If the value of bit 1 of the Flags field is 1 (Time Stamp) and bit 2 is 0, the structure of the Temperature Measurement characteristic consists of three fields in this order: Flags, Temperature Measurement Value and Time Stamp.

If the value of bit 1 of the Flags field is 1 and bit 2 is 1 (Time Stamp and Temperature Type), the structure of the Temperature Measurement characteristic consists of four fields in this order: Flags, Temperature Measurement Value, Time Stamp and Temperature Type.

If the value of bit 1 of the Flags field is 0 and bit 2 is 1 (Temperature Type), the structure of the Temperature Measurement characteristic consists of three fields in this order: Flags, Temperature Measurement Value and Temperature Type.

Value Fields

Names Field Requirement Format Minimum Value Maximum Value Additional Information
Flags
Information:
Mandatory
8bit N/A N/A
Bit Field
Bit Size Name
Definition
Key Value Requires
0 1 Temperature Units Flag
0 Temperature Measurement Value in units of Celsius C1
1 Temperature Measurement Value in units of Fahrenheit C2
1 1 Time Stamp Flag
0 Time Stamp field not present
1 Time Stamp field present C3
2 1 Temperature Type Flag
0 Temperature Type field not present
1 Temperature Type field present C4
3 1 Reserved for future use
4 1 Reserved for future use
5 1 Reserved for future use
6 1 Reserved for future use
7 1 Reserved for future use
Temperature Measurement Value (Celsius)
Information:
This field is only included if the flags bit 0 is 0.
Unit:
org.bluetooth.unit.thermodynamic_temperature.degree_celsius
C1
FLOAT N/A N/A None
Temperature Measurement Value (Fahrenheit)
Information:
This field is only included if the flags bit 0 is 1.
Unit:
org.bluetooth.unit.thermodynamic_temperature.degree_fahrenheit
C2
FLOAT N/A N/A None
Time Stamp
Information:
If the flags bit 1 is 1 this field is included. If it is 0, this field is not included
C3
org.bluetooth.characteristic.date_time N/A N/A None
Temperature Type
Information:
If the flags bit 2 is set to 1 this field is included. If it is 0, this field is not included
C4
org.bluetooth.characteristic.temperature_type N/A N/A None

Note:

The fields in the above table are in the order of LSO to MSO. Where LSO = Least Significant Octet and MSO = Most Significant Octet.