Skip to content

Commit 776b546

Browse files
author
Guy Morton
authored
Fix to allow setting of empty values
Currently getValue does not allow the setting of 0-length values, but setting a characteristic's value to empty is a perfectly valid thing to want to do.
1 parent 875895d commit 776b546

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/ios/BluetoothLePlugin.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3336,10 +3336,6 @@ -(NSData*) getValue:(NSDictionary *) obj {
33363336

33373337
NSData *data = [[NSData alloc] initWithBase64EncodedString:string options:0];
33383338

3339-
if (data == nil || data.length == 0) {
3340-
return nil;
3341-
}
3342-
33433339
return data;
33443340
}
33453341

0 commit comments

Comments
 (0)