getBpgDataTrendLatest(devId: Object)

版本要求:
@ray-js/ray≥1.5.40
import { health } from '@ray-js/ray';

const { getBpgDataTrendLatest } = health;

// Promise 调用
try {
  const res = await getBpgDataTrendLatest({ ...params });
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

描述

获取最新一天血压统计数据

参数

属性类型必填说明
devIdstring是设备 ID
userIdstring是用户 ID

返回值

类型:Promise<Object↓>
属性类型说明
avgTotalDiastring平均舒张压
avgTotalPulsestring平均脉搏
avgTotalSysstring平均收缩压
趋势数据

示例代码

基础用法

import { health } from '@ray-js/ray'

health.getBpgDataTrendLatest({
  devId: 'vdevo169477319679442',
  userId: 'user123',
}).then((res) => {
  console.log('最新统计:', res);
}).catch((error) => {
  console.error(error);
});