getBpgDataUnallocated(devId: Object)

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

const { getBpgDataUnallocated } = health;

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

描述

获取未分配血压数据

参数

属性类型必填说明
devIdstring是设备 ID
limitnumber是每页数量
offsetnumber是页码

返回值

类型:Promise<Object↓>
属性类型说明
血压数据列表
hasNextboolean是否有下一页
totalCountnumber血压数据总数

合法值

return.datas.bpLevel
值说明最低版本
WHO_LV0--
WHO_LV1--
WHO_LV2--
WHO_LV3--
WHO_LV4--
WHO_LV5--
return.datas.reportType
值说明最低版本
1--
2--

示例代码

基础用法

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

health.getBpgDataUnallocated({
  devId: 'vdevo169477319679442',
  offset: 0,
  limit: 20,
}).then((res) => {
  console.log('未分配数据:', res);
}).catch((error) => {
  console.error(error);
});