bluejay icon indicating copy to clipboard operation
bluejay copied to clipboard

write without response assumes we can process the write immediately

Open markohara opened this issue 4 years ago • 0 comments

Summary: If we enqueue a large number of .withoutResponse writes, eventually we reach a point where the Core Bluetooth write buffer can no longer take any more writes, resulting in a crash. Apple has added the peripheralIsReady delegate method to allow you to ensure another write can happen successfully when writing without response.

in WriteCharacteristic instead of automatically processing requests of this type, we should use peripheralIsReady to inform us that we are able to process this write.

markohara avatar Feb 13 '21 14:02 markohara