Skip to content

Commit aba0858

Browse files
committed
Bug fix.
1 parent c1ede41 commit aba0858

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Examples/BLEChat_Central_OSX/BLEChat_Central_OSX/RBLAppDelegate.m

+4
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ -(void) bleDidReceiveData:(unsigned char *)data length:(int)length
5353
{
5454
NSLog(@"Length: %d", length);
5555

56+
data[length] = 0;
5657
NSString *str = [NSString stringWithCString:data encoding:NSUTF8StringEncoding];
5758

59+
60+
NSLog(@"%@", str);
61+
5862
static NSMutableString *message;
5963

6064
if (message == nil)

0 commit comments

Comments
 (0)