Set Medication Reminder
Menu: exTableMain11TakingMedicine (To be added in the SDK)
Flutter Example:
/// Set Taking Medicine Reminder Event Code
setTakingMedicineReminder(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_taking_medicine_reminder),
/// Set Medication Reminder
libManager.send(evt: CmdEvtType.setTakingMedicineReminder, json: jsonEncode(json));
JSON Fields Sent by the App:
Field Name | Field Type | Field Description |
---|---|---|
taking_medicine_id | int | ID ranging from 1 to 5 |
on_off | int | 0 for off 1 for on |
start_hour | int | Starting hour of the reminder |
start_minute | int | Starting minute of the reminder |
end_hour | int | Ending hour of the reminder |
end_minute | int | Ending minute of the reminder |
repeat | int | Bit0 is invalid Bit1 to Bit7 represent Monday to Sunday |
interval | int | Reminder interval in minutes Default is 60 minutes |
do_not_disturb_on_off | int | Do not disturb time period switch 0 for off 1 for on Default is off |
do_not_disturb_start_hour | int | Do not disturb start hour |
do_not_disturb_start_minute | int | Do not disturb start minute |
do_not_disturb_end_hour | int | Do not disturb end hour |
do_not_disturb_end_minute | int | Do not disturb end minute |
Example:
{
"taking_medicine_id": 1,
"on_off": 0,
"start_hour": 10,
"start_minute": 22,
"end_hour": 23,
"end_minute": 0,
"repeat": 127,
"interval": 60,
"do_not_disturb_on_off": 0,
"do_not_disturb_start_hour": 0,
"do_not_disturb_start_minute": 0,
"do_not_disturb_end_hour": 0,
"do_not_disturb_end_minute": 0
}
JSON Fields Received by the App:
Field Name | Field Type | Field Description |
---|---|---|
is_success | int | 0 for failed 1 for success |
Example:
{
"is_success": 0
}