Set GPS Information

Flutter Example:

/// Set temperature switch event number
setTemperatureSwitch(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.app_set_temperature_switch),

/// Set temperature switch
libManager.send(evt: CmdEvtType.setTemperatureSwitch, json: jsonEncode(json));

JSON fields sent by the App:

Field Name Field Type Field Description
utc_year int Year
utc_month int Month
utc_day int Day
utc_hour int Hour
utc_minute int Minute
utc_second int Second
start_mode int Start mode
1: Cold start
2: Hot start
Default 2
gsop_operation_mode int Operation mode
1: Normal
2: Low power
4: Balance
5: 1PPS
Default 1
gsop_cycle_ms int Position cycle in milliseconds
Default 1000 (1 second)
gns_value int Positioning satellite mode
1: GPS
2: GLONASS
3: GPS + GLONASS
Default 1

Example:

{
  "utc_year": 2022,
  "utc_month": 12,
  "utc_day": 19,
  "utc_hour": 16,
  "utc_minute": 18,
  "utc_second": 30,
  "start_mode": 2,
  "gsop_operation_mode": 1,
  "gsop_cycle_ms": 1000,
  "gns_value": 1
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2025-04-30 09:32:44

results matching ""

    No results matching ""