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.
Summary: There's no way to know if a characteristic has the specified
CBCharacteristicWriteType
when callingwrite
because if it doesn't,success
is returned instead offail
.Steps to Reproduce:
bluejay.write
passing aCharacteristicIdentifier
and either.withResponse
or.withoutResponse
as itstype
(pass the one that doesn't correspond to what that characteristic has as itswriteProperty
).Actual Result: Callback from
write
issuccess
even if the wrongCBCharacteristicWriteType
is passed.Expected Result: Callback from
write
should befail
if the wrongCBCharacteristicWriteType
is passed.Device, Build, OS: iPhone 13 Pro - iOS 15.4.1