设置日出日落时间

功能表:support_set_weatch_sun_time_0a_06(c库jsonid SDK待补充)

Flutter示例:

/// 设置日出日落时间事件号
setWeatherSunTime(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.app_weatcher_set_sun_time),

/// 设置日出日落时间
libManager.send(evt: CmdEvtType.setWeatherSunTime, json: jsonEncode(json));

App下发的json字段

字段名 字段类型 字段说明
sunrise_hour int 日出时间 时
sunrise_min int 日出时间 分
sunset_hour int 日落时间 时
sunset_min int 日落时间 分

示例:

{
  "sunrise_hour":6,
  "sunrise_min":12,
  "sunset_hour":18,
  "sunset_min":30
}

App收到的json字段

字段名 字段类型 字段说明
is_success int 0是失败
1是成功

示例:

{
  "is_success":1
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修订时间: 2026-04-07 16:03:39

results matching ""

    No results matching ""