Set Control GPS

Flutter Example:

/// Control GPS event number
setGpsControl(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.app_set_control_gps),

/// Set control GPS
libManager.send(evt: CmdEvtType.setGpsControl, json: jsonEncode(json));

JSON fields sent by the App:

Field Name Field Type Field Description
operate int 1: Control
2: Query
type int 1: Enable log
2: Disable log
3: Write AGPS data
4: Erase AGPS data
5: Write GPS firmware

Example:

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

JSON fields received by the App:

Field Name Field Type Field Description
type int 1: Enable log
2: Disable log
3: Write AGPS data
4: Erase AGPS data
5: Write GPS firmware
status int 0: Invalid
1: Command in progress
2: Completed
error_code int 0 for success, non-zero for failure

Example:

{
    "type": 2,
    "status": 0,
    "error_code": 0
}
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 ""