I'm using nRF51822 SoC and i want to notify the Androïd(4.3) application with the changes of the Major value due to switching the beacon mode . How to change Major value ? ps : The major value is a characteristic of GATT service
I'm using nRF51822 SoC and i want to notify the Androïd(4.3) application with the changes of the Major value due to switching the beacon mode . How to change Major value ? ps : The major value is a characteristic of GATT service
What exactly do you mean by "Major value"? Can you be more specific?
The major value is a characteristic of GATT service . In my application it designs the mode of the micro controller . I want to change the major value ( the mode ) manually to be able to notify the Androïd app with the mode changes .
Hi
As I understand your question, you want to send notification on your characteristic.
If that is the case, you can look at the ble_app_lbs example, which is the most simple example. Push a button on the device and a characteristic value will change on the connected central. Write to a characteristic from the central will light up a led on the device.
As I know the androïd application can read the gatt service characteristic ( the major_value) from the nrf51 device. I'm right ? If so , can i use the ble_advdata_set which invokes sd_ble_gap_adv_data_set (Pass encoded advertising data and/or scan response data to the stack) for setting the gatt service characteristic ( the major) ?