Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 3 months ago.
Where can I find the examples for GAP central and Gatt client?
Dear all,
I have found that BLE_API supports GAP central role and Gatt client. Is it a stable version now? and where can I find the examples for GAP central and Gatt client ?
Thanks!
Question relating to:
1 Answer
9 years, 3 months ago.
I would recommend lookijng at BLE_ButtonSense or BLE_LEDBlinker, as both now show how to GAP discover a device. Button sense starts to show how to write, if your Service is supported. If not you will need to define your own services, in which case I would recommend looking at the BLE_LoopbackUART, which shows how and where to place the service definition, provided you know the service and characteristic UUID and types(read/write/notify/indicate). Additionally for acutual communication you will want to look at some of the gattserver examples, which show how qued information is handled, handling errors, and writing to the remote device. It also gives insight in to what your peripheral device should be expecting of you.
Good Luck, JPaul Carpenter