cancel
Showing results for 
Search instead for 
Did you mean: 

GATT char update value, store in EEPROM

sai
Associate II
Posted on September 07, 2016 at 10:59

Hello, 

I am using Blue NRG along with L051. I have used GATT_char_update_value for changing the GAP device name from default 'BlueNRG' to something taht I want. I am using nRF Master Control application on an android phone. From my phoine, when I change the Device Name from the app on my phone, how do I detect it in my code?

Till now, I have figured that it goes to AttributeModified callback function with the handle value 0x07 always. For now, I have hard coded this value 0y07. Is there anyway to check the handle without hand coding it as 7? 

I am aware that in addService function i have to call aci_gatt_add_char with the service handle and define a new charUuid and  aparticular gatt event mask.

But this event mask is not defined in gatt_server.h. only 0x01 to 0x04 are defined. What about 0x07? should I define it in my service?

#bluehci_gatt_write_charac_val
0 REPLIES 0