Set SpO2 Switch

Menu: setSpo2Data [setSpo2AllDayOnOff, v3SupportSetSpo2LowValueRemind (to be filled by SDK), getSpo2NotifyFlag]

Flutter Example:

/// Set SpO2 switch event
setSpo2Switch(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.app_set_spo2),

/// Set SpO2 switch
libManager.send(evt: CmdEvtType.setSpo2Switch, json: jsonEncode(json));

JSON Fields Sent by the App:

Field Name Field Type Field Description
on_off int SpO2 all-day switch
1 On
0 Off
start_hour int Start time (hour)
start_minute int Start time (minute)
end_hour int End time (hour)
end_minute int End time (minute)
low_spo2_on_off int Low SpO2 switch
1 On
0 Off
Requires support from the menu v3_support_set_spo2_low_value_remind
low_spo2_value int Low SpO2 threshold
Requires support from the menu v3_support_set_spo2_low_value_remind
notify_flag int Notification type
0: Invalid
1: Allow notifications
2: Silent notifications
3: Disable notifications
Requires support from the menu v3_spo2_add_notify_flag

Example:

{
  "on_off": 1,
  "start_hour": 14,
  "start_minute": 0,
  "end_hour": 20,
  "end_minute": 0,
  "low_spo2_on_off": 1,
  "low_spo2_value": 20,
  "notify_flag": 1
}

JSON Fields Received by the App:

Field Name Field Type Field Description
err_code int 0 for success, non-zero for error code

Example:

{
  "err_code": 0
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2025-04-30 09:32:44

results matching ""

    No results matching ""