V3 Schedule Reminder
Menu: 【getSupportSetRepeatWeekTypeOnScheduleReminderV3,getSupportSetRepeatTypeOnScheduleReminderV3】
Flutter example:
/// v3 set schedule reminder event ID
setSchedulerReminderV3(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.func_v3_scheduler_reminder),
/// v3 set schedule reminder
libManager.send(evt: CmdEvtType.setSchedulerReminderV3, json: jsonEncode(json));
JSON fields sent by the app:
Field Name | Field Type | Field Description |
---|---|---|
version | int | Protocol library version number |
operate | int | Operation type 0: Invalid 1: Add 2: Delete 3: Query 4: Modify |
num | int | Number of reminder event details in the items field. Only affects the setting, otherwise 0. Sent one at a time |
items | array | Reminder event details Maximum of 1 data item |
Field Name | Field Type | Field Description |
---|---|---|
id | int | Reminder event ID. Incremental value sent by the app, starting from 0 |
year | int | Year |
mon | int | Month |
day | int | Day |
hour | int | Hour |
min | int | Minute |
sec | int | Second |
repeat_type | int | Repeat time Set bit1-bit7 for week-based repeat if enabled with getSupportSetRepeatWeekTypeOnScheduleReminderV3 (Monday to Sunday, with bit 0 as the general switch) Set repeat type (0: Invalid, 1: Once, 2: Daily, 3: Weekly, 4: Monthly, 5: Yearly) if enabled with getSupportSetRepeatTypeOnScheduleReminderV3 |
remind_on_off | int | Daily reminder switch 0: Off, 1: On |
state | int | State code 0: Invalid, 1: Deleted, 2: Enabled |
title | char [] | Title content. Maximum 74 bytes |
note | char [] | Reminder content. Maximum 149 bytes |
Example:
{
"version": 0,
"operate": 1,
"num": 1,
"items": [
{
"id": 0,
"year": 2022,
"mon": 12,
"day": 26,
"hour": 15,
"min": 51,
"sec": 20,
"repeat_type": 255,
"remind_on_off": 1,
"state": 2,
"title": "Reminder 1",
"note": "Remember to complete the task"
}
]
}
JSON fields received by the app:
Field Name | Field Type | Field Description |
---|---|---|
version | int | Protocol library version number |
err_code | int | Error code. 0 if successful, non-zero if error |
num | int | Number of existing reminder data in the firmware |
operate | int | Operation type 0: Invalid 1: Add 2: Delete 3: Query 4: Modify |
items | array | Reminder event details |
Field Name | Field Type | Field Description |
---|---|---|
id | int | Reminder event ID. Incremental value sent by the app, starting from 0 |
year | int | Year |
mon | int | Month |
day | int | Day |
hour | int | Hour |
min | int | Minute |
sec | int | Second |
repeat_type | int | Repeat time Set bit1-bit7 for week-based repeat if enabled with getSupportSetRepeatWeekTypeOnScheduleReminderV3 (Monday to Sunday, with bit 0 as the general switch) Set repeat type (0: Invalid, 1: Once, 2: Daily, 3: Weekly, 4: Monthly, 5: Yearly) if enabled with getSupportSetRepeatTypeOnScheduleReminderV3 |
remind_on_off | int | Daily reminder switch 0: Off, 1: On |
state | int | State code 0: Invalid, 1: Deleted, 2: Enabled |
title | char [] | Title content. Maximum 74 bytes |
note | char [] | Reminder content. Maximum 149 bytes |
Example:
{
"version": 0,
"err_code": 0,
"num": 0,
"operate": 1,
"items": null
}