PolarBleLowLevelApi
public protocol PolarBleLowLevelApi
Undocumented
-
Read a file over PFtp BLE client. API user must know the exact path to the desired file. Note that not all files in device are readable by this API. API user must also take care of parsing the returned ByteArray payload to the desired data object. NOTE: this is an experimental API intended for Polar internal use only. Polar will not support 3rd party users with this API.
Requires
Requires SDK feature(s):PolarBleSdkFeature.feature_polar_file_transferDeclaration
Swift
func readFile( identifier: String, filePath: String ) -> Maybe<Data>Return Value
Maybe (ByteArray or empty) /
-
Write any file over PFtp BLE client. API user must know the exact path to the desired file. API user must also take care of parsing the returned ByteArray payload to the desired data object. NOTE: this is an experimental API intended for Polar internal use only. Polar will not support 3rd party users with this API.
Requires
Requires SDK feature(s):PolarBleSdkFeature.feature_polar_file_transferDeclaration
Swift
func writeFile( identifier: String, filePath: String, fileData: Data ) -> CompletableReturn Value
Completable or error /
-
Delete any file or directory over PFtp BLE client. API user must know the exact path to the desired file. API user must also take care of parsing the returned ByteArray payload to the desired data object. NOTE: this is an experimental API intended for Polar internal use only. Polar will not support 3rd party users with this API.
Requires
Requires SDK feature(s):PolarBleSdkFeature.feature_polar_file_transferDeclaration
Swift
func deleteFileOrDirectory( identifier: String, filePath: String ) -> CompletableReturn Value
Completable or error
-
List all files in the given path NOTE: this is an experimental API intended for Polar internal use only. Polar will not support 3rd party users with this API.
Requires
Requires SDK feature(s):PolarBleSdkFeature.feature_polar_file_transferDeclaration
Swift
func getFileList( identifier: String, directoryPath: String, recurseDeep: Bool ) -> Single<[String]>Return Value
List of files or error