Set battery reminder switch

Function table: supportBatteryReminderSwitch

Flutter Example:

/// Event for set battery reminder switch
/// setBatteryReminderSwitch(
///   evtBase: _VBusEvtBase.base_app_set,
///   evtType: _VBusEvtType.app_set_battery_reminder_switch),

/// Set battery reminder switch
final json = {
  "low_battery_on_off": 1, // 1: On, 0: Off
};
libManager.send(
  evt: CmdEvtType.setBatteryReminderSwitch,
  json: jsonEncode(json),
);

JSON fields sent by App:

Field Name Field Type Field Description
low_battery_on_off int Low battery reminder switch
1: On
0: Off

Example:

{
  "low_battery_on_off": 1
}

JSON fields received by App:

Field Name Field Type Field Description
err_code int 0 means success, non-zero means error code

Example:

{
  "err_code": 0
}

Notes:

  • It is recommended to check libManager.funTable.supportBatteryReminderSwitch before sending.
  • Keep UI state aligned with the actual value returned by device.
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2026-04-07 16:03:47

results matching ""

    No results matching ""