4 years, 5 months ago.

GATT Server beginner question

Hello, my name is Jan and I am new in the programming with Mbed.

I'm studying mechanical engineering and looking for help.

My task is to take up acceleration data with some NRF52 device. Now I want to transmit them via BLE to a Gateway. First I work with the advertise data, it works great but the data rate is too small. After this i started to configurate the NRF as a GATT Server. But for me it looks really complicated. Cananyone recommend me some examples for this task ?

Thank you for your help !

1 Answer

4 years, 5 months ago.

Hi Jan,

You can try BLE_BatteryLevel

https://github.com/ARMmbed/mbed-os-example-ble/tree/master/BLE_BatteryLevel

It's also an application of gatt server and simpler, it calls ble.gattServer().write()

https://github.com/ARMmbed/mbed-os/blob/18d4adf04f50de2452d7686b77da375881f5811b/features/FEATURE_BLE/ble/services/BatteryService.h#L103

Regards, Desmond

Accepted Answer

Thank you for the answer ! But now i have the problem with the updating intervall. It is possible to update the value faster ? greetings

posted by Jan St 07 Nov 2019