Get battery reminder switch

Function table: supportBatteryReminderSwitch

Flutter Example:

/// Event for get battery reminder switch
/// getBatteryReminderSwitch(
///   evtBase: _VBusEvtBase.base_app_get,
///   evtType: _VBusEvtType.app_get_battery_reminder_switch),

/// Get battery reminder switch
libManager.send(evt: CmdEvtType.getBatteryReminderSwitch, json: jsonEncode({}));

JSON fields received by App:

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

Example:

{
  "low_battery_on_off": 1
}

Notes:

  • It is recommended to check libManager.funTable.supportBatteryReminderSwitch before sending.
  • If the return value is 255, treat it as unsupported or invalid on the app side.
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 ""