7 years, 3 months ago.

Updating data in Gatt Characterictics of BLE

Hi all, We are trying to program NRF51822 module in mbed platform and want to toggle the LED connected to the gpios of the module, that is successfully completed but we want the status of LED on our BLE central (i.e Mobile Phone), we are appending the Gatt-characteristics of "Email Address" in DeviceInfoServices and it is showing on our mobile application but we aren't getting any status of LED (ON/OFF), we are taking reference from "BLE-HeartRate" code and using function UpdateHeartRateData(hrmcounter) to update the status of our LED, but we are facing some issue in this function and we are not getting any data on Mobile characteristics. Please help us to understand about this function that how can we update the status data on mobile based on gpio toggling. Here is the update function we are using,

void updateDataRate(uint8_t DataCounter) { valueBytes.updateDataRate(DataCounter); ble.gattServer().write(emailStringCharacteristic.getValueHandle(), valueBytes.getPointer(), valueBytes.getNumValueBytes()); }

Or is there any alternate method ? Thanks & regards, Idris

Be the first to answer this question.