This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to read values for characterstic.

I am not able to read value from characteristics. Always getting isNotify=NO.

  • Are you reading GATT Characteristic as GATT Client over BLE link or are you reading it just internally on GATT Server by sending some SD function call from application to Nordic Soft Device? According to tags you use S132 so probably nRF52832 chip but anyway can you provide proper description of your system (what exact HW and SW/FW you run on both sides of the link)?

  • Hi, I am developng iOS app using n52 device and just want to get description for each cahracter. but isNotifying Bool value always coming as NO so readValueForCharacteristic:characteristic never called. I tried to commented out that isNotifying flag and its working. Any lead will be appreciated. thanks

    if (characteristic.isNotifying) {
        NSString *stringFromData = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
        [peripheral readValueForCharacteristic:characteristic];
        
        NSLog(@"Data ====== %@", @"ccdc");
    

    } else { [centralManager cancelPeripheralConnection:peripheral];
    }

  • Sorry, this doesn't make much sense. You hardly develop iOS application on nRF52 device, so I assume there is something else running on Nordic chip (where you got the FW and what is it doing?) Then your code is probably iOS code which is not mainstream topic here, I'm afraid you will hardly get different answer then "get Nordic example iOS apps from Github, try to make them work as they are first and then continue with little modifications and testing after each change towards your goal".

  • Did you read the Core Bluetooth Programming guide? reading the value of a characteristic is described here.

Related