self.deviceAgent.getChargingState()// Result callback, see bleChargingState// where isCharging indicates if it's charging// where level is the battery percentage
// Trigger: getFileList// Parameter: sessionId: From which file to start downloading. 0 means download all.self.deviceAgent.getFileList(sessionId: 0)// Result callback, where bleFiles is the file listfunc bleFileList(bleFiles: [BleFile])
/// Download file////// - Parameters:/// - sessionId: The unique ID of the recording file/// - outputPath: The path to save the recording fileself.deviceAgent.downloadFile(sessionId: bleFile.sessionId, outputPath: targetPath)// Result callback/// @see Callback bleDownloadFile// which includes file ID, download path, download status, download progress, and a prompt message.
/// Initiate Wi-Fi Test/// - Parameter wifiIndex: Wi-Fi index (4 bytes)@objc public func setWifiSyncTest(wifiIndex: UInt32)/// Get Wi-Fi Test Result/// - Parameter wifiIndex: Wi-Fi index (4 bytes)@objc public func getWifiSyncTestResult(wifiIndex: UInt32)