Get Do Not Disturb Mode Status

Menu: getDoNotDisturbMain3

Flutter Example:

/// Get Do Not Disturb mode status event number
getNotDisturbStatus(
  evtBase: _VBusEvtBase.base_app_get,
  evtType: _VBusEvtType.app_get_do_not_disturb),

/// Get Do Not Disturb mode status
libManager.send(evt: CmdEvtType.getNotDisturbStatus, json: jsonEncode(json));

JSON fields received by the App:

Field Name Field Type Field Description
switch_flag int Switch status
1: On
0: Off
-1:Not Support
start_hour int Start hour
start_minute int Start minute
end_hour int End hour
end_minute int End minute
have_time_range int Whether there is a time range
0: Invalid
1: No time range
2: Has time range
week_repeat int reserve
noontime_rest_on_off int Noon rest switch, headset reminder switch
1: On
0: Off
-1:Not Support
noontime_rest_start_hour int Reminder start hour
noontime_rest_start_minute int Reminder start minute
noontime_rest_end_hour int Reminder end hour
noontime_rest_end_minute int Reminder end minute
all_day_on_off int All day Do Not Disturb switch
1: On
0: Off
-1:Not Support
intelligent_on_off int Intelligent Do Not Disturb switch
1: On
0: Off
-1:Not Support

Example:

{
  "all_day_on_off": 0,
  "end_hour": 7,
  "end_minute": 0,
  "have_time_range": 0,
  "intelligent_on_off": 0,
  "noontime_rest_end_hour": 7,
  "noontime_rest_end_minute": 0,
  "noontime_rest_on_off": 1,
  "noontime_rest_start_hour": 22,
  "noontime_rest_start_minute": 0,
  "start_hour": 22,
  "start_minute": 0,
  "switch_flag": 1,
  "week_repeat": 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 ""