BluetoothKit
BluetoothKit copied to clipboard
Data Transfer Size Limitation
Is there a limitation in data transfer size? can transfer small size of data but once the size increase data cannot be received? issues is generally seen when data gets higher in size which is 60000, 70000 bytes.
my data sending code,
let navLogData = NSKeyedArchiver.archivedData(withRootObject: navDict)
Logger.info("Sending to (remotePeripheral.name)")
central.sendData(navLogData, toRemotePeer: remotePeripheral) { data, remotePeripheral, error in
guard error == nil else {
Logger.info("Failed sending to (remotePeripheral)")
Utils.showAlert(title: "", msg: "Failed to send data. Please Try Again", alertType: .ok, cancelHandler: nil) { _ in
}
return
}