Set Time

Flutter Example:

/// Set Time
setTime(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.app_set_time),

/// Set Time
libManager.send(evt: CmdEvtType.setTime, json: jsonEncode(json));

JSON Fields Sent by the App:

Field Name Field Type Field Description
year int Year
month int Month
day int Day
hour int Hour
minute int Minute
second int Second
week int Week:
0-6 for Monday to Sunday
time_zone int Timezone in a 24-hour format:
0-12 for East
13-24 for West

Example:

{
  "year": 2022,
  "month": 12,
  "day": 16,
  "hour": 17,
  "minute": 49,
  "second": 46,
  "week": 5,
  "time_zone": 8
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2023-09-14 16:04:31

results matching ""

    No results matching ""