bluejay
bluejay copied to clipboard
Write doesn't fail if the wrong type is passed
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:
- Call
bluejay.writepassing aCharacteristicIdentifierand either.withResponseor.withoutResponseas itstype(pass the one that doesn't correspond to what that characteristic has as itswriteProperty).
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
Just pushed a Pull Request to fix this #264