bluejay icon indicating copy to clipboard operation
bluejay copied to clipboard

Write doesn't fail if the wrong type is passed

Open DantePuglisi opened this issue 2 years ago • 1 comments

Summary: There's no way to know if a characteristic has the specified CBCharacteristicWriteType when calling write because if it doesn't, success is returned instead of fail.

Steps to Reproduce:

  1. Call bluejay.write passing a CharacteristicIdentifier and either .withResponse or .withoutResponse as its type (pass the one that doesn't correspond to what that characteristic has as its writeProperty).

Actual Result: Callback from write is success even if the wrong CBCharacteristicWriteType is passed.

Expected Result: Callback from write should be fail if the wrong CBCharacteristicWriteType is passed.

Device, Build, OS: iPhone 13 Pro - iOS 15.4.1

DantePuglisi avatar May 16 '22 19:05 DantePuglisi

Just pushed a Pull Request to fix this #264

DantePuglisi avatar May 16 '22 19:05 DantePuglisi