获取所有的健康监测开关

功能表:getHealthSwitchStateSupportV3

Flutter示例:

/// 获取所有的健康监测开关事件号
getAllHealthSwitchState(
  evtBase: _VBusEvtBase.base_app_get,
  evtType: _VBusEvtType.app_get_all_health_switch_state),

/// 获取所有的健康监测开关
libManager.send(evt: CmdEvtType.getAllHealthSwitchState, json: jsonEncode(json));

App收到的json字段

字段名 字段类型 字段说明
heart_mode int 连续测量心率开关
1:开
0:关
-1:不支持
pressure_mode int 压力自动检测开关
1:开
0:关
-1:不支持
spo2_mode int 血氧自动检测开关
1:开
0:关
-1:不支持
science_mode int 科学睡眠模式
2:科学睡眠
1:普通睡眠
-1:不支持
temperature_mode int 夜间体温开关
1:开
0:关
-1:不支持
noise_mode int 噪声开关
1:开
0:关
-1:不支持
menstrual_mode int 生理周期开关
1:开
0:关
-1:不支持
walk_mode int 走动提醒开关
1:开
0:关
-1:不支持
handwashing_mode int 洗手提醒开关
1:开
0:关
-1:不支持
drinkwater_mode int 喝水提醒开关
1是开
0是关
respir_rate_state int 呼吸率开关
1:开
0:关
-1:不支持
body_power_state int 身体电量开关
1:开
0:关
-1:不支持
heartmode_notify_flag int 心率通知状态类型
0无效
1:允许通知
2:静默通知
3:关闭通知
pressure_notify_flag int 压力通知状态类型
0无效
1:允许通知
2:静默通知
3:关闭通知
spo2_notify_flag int 血氧通知状态类型
0无效
1:允许通知
2:静默通知
3:关闭通知
menstrual_notify_flag int 生理周期通知状态类型
0无效
1:允许通知
2:静默通知
3:关闭通知
guidance_notify_flag int 健身指导通知状态类型
0无效
1:允许通知
2:静默通知
3:关闭通知
reminder_notify_flag int 提醒事项通知状态类型
0无效
1:允许通知
2:静默通知
3:关闭通知

示例:

{
  "heart_mode" : 1,
  "pressure_mode" : 1,
  "spo2_mode" : 1,
  "science_mode" : 0,
  "temperature_mode" : 0,
  "noise_mode" : 1,
  "menstrual_mode" : 0,
  "walk_mode" : 0,
  "handwashing_mode" : -1,
  "drinkwater_mode" : -1,
  "heartmode_notify_flag" : -1,
  "pressure_notify_flag" : 1,
  "spo2_notify_flag" : 1,
  "menstrual_notify_flag" : 0,
  "guidance_notify_flag" : -1,
  "reminder_notify_flag" : 0,
  "respir_rate_state" : 0,
  "body_power_state" : 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 ""