Set Do Not Disturb Mode
Menu: setDoNotDisturb [disturbHaveRangRepeat (SDK to be supplemented), setOnlyNoDisturbAllDayOnOff, setOnlyNoDisturbSmartOnOff]
Flutter Example:
/// Do not disturb mode event number
setDoNotDisturb(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_do_not_disturb),
/// Set do not disturb mode
libManager.send(evt: CmdEvtType.setDoNotDisturb, json: jsonEncode(json));
JSON fields sent by the App:
| Field Name | Field Type | Field Description |
|---|---|---|
| switch_flag | int | 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 |
| have_time_range | int | Whether there is a time range 0: Invalid 1: No time range 2: Has time range Menu disturbHaveRangRepeat is available when opened |
| week_repeat | int | reserve |
| noontime_rest_on_off | int | Daytime do not disturb switch 1: On 0: Off |
| noontime_rest_start_hour | int | Start time Hour |
| noontime_rest_start_minute | int | Start time Minute |
| noontime_rest_end_hour | int | End time Hour |
| noontime_rest_end_minute | int | End time Minute |
| all_day_on_off | int | All-day do not disturb 1: On 0: Off Menu setOnlyNoDisturbAllDayOnOff is available when opened |
| intelligent_on_off | int | Intelligent do not disturb switch 1: On 0: Off Menu setOnlyNoDisturbSmartOnOff is available when opened |
Example:
{
"switch_flag":1,
"start_hour":15,
"start_minute":23,
"end_hour":23,
"end_minute":30,
"have_time_range":2,
"week_repeat":127,
"noontime_rest_on_off":1,
"noontime_rest_start_hour":9,
"noontime_rest_start_minute":0,
"noontime_rest_end_hour":12,
"noontime_rest_end_minute":0,
"all_day_on_off":0,
"intelligent_on_off":0
}