getBpgDataTrendLatest(devId: Object)

Requires:
@ray-js/ray≥1.5.40
import { health } from '@ray-js/ray';

const { getBpgDataTrendLatest } = health;

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

Description

Get latest one-day blood pressure statistics

Parameters

PropertyTypeRequiredDescription
devIdstringYesDevice ID
userIdstringYesUser ID

Return Value

Type: Promise<Object↓>
PropertyTypeDescription
avgTotalDiastringAverage diastolic blood pressure
avgTotalPulsestringAverage pulse
avgTotalSysstringAverage systolic blood pressure
Trend data

Examples

Basic usage

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

health.getBpgDataTrendLatest({
  devId: 'vdevo169477319679442',
  userId: 'user123',
}).then((res) => {
  console.log('Latest statistics:', res);
}).catch((error) => {
  console.error(error);
});