I am trying to read the value that I store in the lightBlue application but the problem is it cannot seems to get the string. It detects that I am reading the data but when I convert the data to a string it outputs @""
-(void) peripheral:(CBPeripheral *)peripheral didUpdateValueForCharacteristic:(CBCharacteristic *)characteristic error:(NSError *)error{
if([characteristic.UUID isEqual:[CBUUID UUIDWithString:@"2A29"]]){
if (characteristic.value) {
NSString *stringFromData = [[NSString alloc] initWithData:characteristic.value encoding:NSUTF8StringEncoding];
NSLog(@"The String is %@", stringFromData);
self.manufacturer = [[NSString alloc] initWithData:characteristic.value encoding:NSUTF8StringEncoding];
NSLog(@"Manufacturer Name = %@", self.manufacturer);
}
}
}