设置控制gps

Flutter示例:

/// 设置控制GPS事件号
setGpsControl(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.app_set_control_gps),

/// 设置控制GPS
libManager.send(evt: CmdEvtType.setGpsControl, json: jsonEncode(json));

App下发的json字段

字段名 字段类型 字段说明
operate int 1:控制
2:查询
type int 1:开启log
2:关闭log
3:agps写入
4:agps 擦除
5:gps_fw 写入

示例:

{
  "operate":2,
  "type":0
}

App收到的json字段

字段名 字段类型 字段说明
type int 1:开启log
2:关闭log
3:agps写入
4:agps 擦除
5:gps_fw 写入
status int 0:为无效
1:命令正在执行
2:完成
error_code int 成功:0
非0失败

示例:

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

results matching ""

    No results matching ""