获得实时数据

功能表:getRealtimeData

Flutter示例:

/// 获得实时数据事件号
getLiveData(
  evtBase: _VBusEvtBase.base_app_get,
  evtType: _VBusEvtType.app_get_live_data),

/// 获得实时数据
libManager.send(evt: CmdEvtType.getLiveData, json: jsonEncode(json));

App下发的json字段:

字段名 字段类型 字段说明
flag int 0:无功能
1:强制打开心率监测
2:强制打开血压监测

App收到的json字段

字段名 字段类型 字段说明
total_step int 总步数
total_calories int 总卡路里
单位大卡
total_distances int 总距离
单位m
total_active_time int 总活动时长
单位秒
heart_rate int 心率数据
单位bpm
如果没有心率功能,该值为0

示例:

{
  "heart_rate" : 0,
  "total_active_time" : 0,
  "total_calories" : 0,
  "total_distances" : 0,
  "total_step" : 0
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修订时间: 2026-04-07 16:03:39

results matching ""

    No results matching ""