This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc2540

hii....

how to enable notification on a characteristic in simpleblecentral program....???

 

  • Hey Sruthiraj,

    First you will need to make sure the characteristic you wish to receive notifications for allows notifications. The Characteristic Declaration should have a value that gives this property information. Look at simpleProfileChar4Props in SimpleBLEProfile project for an example. You will be able to enable notifications for that characteristic.

    Each characteristic that will generate a notification or indication will also have a characteristic conifguration attribute as well. This attribute will be independent for each client and it is this attribute that enables notifications and indications. You will need to write to GATT_CLIENT_CFG_NOTIFY (or 0x01) to this attribute and then you should receive indications from the server.

    -Matt