Set Pressure Switch

Menu: setPressureData [getPressureNotifyFlagMode, v2SendCalibrationThreshold (SDK to be supplemented)]

Flutter Example:

/// Pressure switch setting event
setStressSwitch(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.app_set_pressure),

/// Set pressure switch
libManager.send(evt: CmdEvtType.setStressSwitch, json: jsonEncode(json));

JSON Fields Sent by the App:

Field Name Field Type Field Description
on_off int Overall 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
remind_on_off int Stress reminder switch
1: On
0: Off
Doesn't work if on_off is off
repeat int Reserve
interval int Reminder interval in minutes, default is 60 minutes
high_threshold int High pressure threshold
stress_threshold int Pressure calibration threshold, default is 80
Requires firmware support for v2_send_calibration_threshold
notify_flag int Notification type
0: Invalid
1: Allow notification
2: Silent notification
3: Disable notification
Requires firmware support for V3_pressure_add_notify_flag_and_mode

Example:

{
   "on_off": 1,
   "start_hour": 14,
   "start_minute": 0,
   "end_hour": 20,
   "end_minute": 0,
   "remind_on_off": 1,
   "repeat": 127,
   "interval": 60,
   "high_threshold": 170,
   "stress_threshold": 80,
   "notify_flag": 1
}
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 ""