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.

BLE Characterstic data read problem

I am using SimpleBLEPeripheral as a reference code for understanding the Stack. I am able to create my own characteristic by modifying simpleGattProfile.c file. Now I want to change the Tx power level of the node using this characteristic. (HCI command would be appropriate for that) but I am not getting where to edit and how to set the event in Osal layer so that when I write new characteristic value (one byte value let's say 1 for -23DBm power and 2 for -6DBm power) the TX power will change. Please guide me. Any kind of help would be useful.

Thanks  

  • Hi Sarang,

    You would get a callback to simpleProfileChangeCB in simpleBLEPeripheral.c. Here you need to check which value was change and then use SimpleProfile_GetParameter to obtain characteristic and decide what's gonna happen. For reference on how to change TX power, take a look at the Keyfob project instead.

    Best Regards

    Joakim