Set Raise-to-Wake Gesture
Function list: setUpHandGesture
Flutter Example:
/// Raise-to-wake gesture event number
setUpHandGesture(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_up_hand_gesture),
/// Set Raise-to-wake gesture
libManager.send(evt: CmdEvtType.setUpHandGesture, json: jsonEncode(json));
JSON Fields Sent by the App:
Field Name | Field Type | Field Description |
---|---|---|
on_off | int | Switch 1: On 0: Off |
show_second | int | Duration for the screen to stay on, in seconds |
has_time_range | int | Whether there is a time range 1: Yes 0: No |
start_hour | int | Starting hour of the time range |
start_minute | int | Starting minute of the time range |
end_hour | int | Ending hour of the time range |
end_minute | int | Ending minute of the time range |
Example:
{
"on_off": 1,
"show_second": 10,
"has_time_range": 1,
"start_hour": 8,
"start_minute": 0,
"end_hour": 18,
"end_minute": 0
}
JSON Fields Received by the App:
Field Name | Field Type | Field Description |
---|---|---|
status_code | int | 0: Success, Non-zero: Failure |
Example:
{
"status_code": 0
}