Get Real-time Data

Function Table: getRealtimeData

Flutter Example:

/// Get Real-time Data event number
getLiveData(
  evtBase: _VBusEvtBase.base_app_get,
  evtType: _VBusEvtType.app_get_live_data),

/// Get Real-time Data
libManager.send(evt: CmdEvtType.getLiveData, json: jsonEncode(json));

JSON Fields Sent by the App:

Field Name Field Type Description
flag int 0: No function
1: Force open heart rate monitoring
2: Force open blood pressure monitoring

JSON Fields Received by the App:

Field Name Field Type Description
total_step int Total steps
total_calories int Total calories (in kilocalories)
total_distances int Total distance (in meters)
total_active_time int Total active time (in seconds)
heart_rate int Heart rate data (in beats per minute)
If heart rate function is not available, this value will be 0

Example:

{
  "heart_rate" : 0,
  "total_active_time" : 0,
  "total_calories" : 0,
  "total_distances" : 0,
  "total_step" : 0
}
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 ""