Interface PolarLoggingApi
-
- All Implemented Interfaces:
public interface PolarLoggingApiPolar logging API.
Provides access to diagnostic and trace log files stored on a Polar device, as well as the device sensor data log configuration.
Requires feature PolarBleApi.PolarBleSdkFeature.FEATURE_POLAR_FILE_TRANSFER
-
-
Method Summary
Modifier and Type Method Description abstract List<PolarDeviceLog>exportDeviceLogs(String identifier)Export all available diagnostic and trace log files from the device. abstract LogConfiggetLogConfig(String identifier)Get LogConfig from device. abstract UnitsetLogConfig(String identifier, LogConfig logConfig)Set LogConfig for device. -
-
Method Detail
-
exportDeviceLogs
abstract List<PolarDeviceLog> exportDeviceLogs(String identifier)
Export all available diagnostic and trace log files from the device.
The following files are attempted in order. Files that do not exist on the device are silently omitted from the result:
/ERRORLOG.BPB– Primary error log/ERRORLO2.BPB– Secondary error log/SYSLOG.TXT– System log/TRC1.BIN,/TRC2.BIN, … – Device telemetry data. Files are fetched sequentially starting from index 1 until a file is not found./DBGTRC1.BIN,/DBGTRC2.BIN, … – Device debug trace data. Files are fetched sequentially starting from index 1 until a file is not found.
Requires feature PolarBleApi.PolarBleSdkFeature.FEATURE_POLAR_FILE_TRANSFER
- Parameters:
identifier- Polar device ID or BT address- Returns:
List of PolarDeviceLog entries for all log files that exist on the device.
-
getLogConfig
abstract LogConfig getLogConfig(String identifier)
Get LogConfig from device. Requires feature PolarBleApi.PolarBleSdkFeature.FEATURE_POLAR_DEVICE_CONTROL
- Parameters:
identifier- Polar device ID or BT address- Returns:
LogConfig or error
-
setLogConfig
abstract Unit setLogConfig(String identifier, LogConfig logConfig)
Set LogConfig for device. Requires feature PolarBleApi.PolarBleSdkFeature.FEATURE_POLAR_DEVICE_CONTROL
- Parameters:
identifier- Polar device ID or BT addresslogConfig- new LogConfig- Returns:
Success or error
-
-
-
-