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.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
Summary:
There's no way to know if a characteristic has the specified
CBCharacteristicWriteTypewhen callingwritebecause if it doesn't,successis returned instead offail.Steps to Reproduce:
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
writeissuccesseven if the wrongCBCharacteristicWriteTypeis passed.Expected Result:
Callback from
writeshould befailif the wrongCBCharacteristicWriteTypeis passed.Device, Build, OS:
iPhone 13 Pro - iOS 15.4.1