Skip to main content
Version: v3

BodyTemperature

Start from API_LEVEL 3.0 . Please refer to API_LEVEL.

Body surface temperature sensor.

info

permission code: data:user.hd.body_temp

Methods

getCurrent

Get the latest measurement of body surface temperature

getCurrent(): Result

Result

PropertyTypeDescriptionAPI_LEVEL
currentnumberSleep stage type, refer to the constants returned by getStageConstantObj for the meaning of the value3.0
timeintervalnumberSleep stage type, refer to the constants returned by getStageConstantObj for the meaning of the value3.0

getToday

Get the body surface temperature measurement values for 24 hours a day. The array length is 24 * 60 / 5 = 288, with an average measurement value every five minutes. The unit is Celsius, such as 35.2. Data without measurement values is -1000

getToday(): Array<number>

Example

import { BodyTemperature } from '@zos/sensor'

const bodyTemperature = new BodyTemperature()

bodyTemperature.getCurrent()