Datasheet
Page 109 of 161
nRF8001 Product Specification
Revision 1.2
24.12 GetTemperature (0x0C)
GetTemperature (0x13) measures the ambient temperature.
24.12.1 Functional description
Upon receiving the GetTemperature command, the temperature is measured and reported as a 2 byte
number.
See the operating mode during which this command can be used in Table 31. on page 92
. The command
will return a command response event with status ACI_STATUS_ERROR_DEVICE_STATE_INVALID
when it is used in the incorrect mode.
24.12.2 Message format
Table 48. ACI message structure for GetTemperature
24.12.3 Accepted values
None
24.12.4 Returned events
This command returns a CommandResponsEvent.
Data returned in the
CommandResponseEvent is:
• Command code:
GetTemperature
• Status: Success
• Response data: Temperature level (2 bytes, 2’complement format, LSB/MSB). Ambient temperature
in degrees Celcius is calculated by dividing the binary number by 4. For example, the value 0x000A
represents 2.5 °C.
24.12.5 Bluetooth low energy procedures used
None
Message field/parameter
Value size
(bytes)
Data value Description
Header
Length 1 1 Packet length
Command 1 0x0C
GetTemperature