Nano 33 ble nRF52840 - BLE long range/pairing ? Mbed BLE API ? Adafruit Lib?

pailhoux:
I found my solution here :

BLE_GATT_Example - This is a demonstration of how to create a GATT sā€¦ | Mbed

In addition there is a video. :wink:

The link here was created in 2015 and was for an earlier version of MBED. So I believe quite a bit has changed since.

I believe Arduino is currently using a hybrid MBED based primarily on version 5.14.

https://os.mbed.com/docs/mbed-os/v5.14/apis/bluetooth.html

In my opinion, the best MBED BLE implementation of a custom peripheral service can be found here (GattServer) as this uses 128-bit UUID's.

https://os.mbed.com/docs/mbed-os/v5.14/apis/gattserver.html

The major downside here is that this example appears to over complicate matters as I can find no real benefit from using #include "platform/Callback.h" for example (and this caused an error when trying to compile). Similarly not sure why #include "platform/NonCopyable.h" is also used. Beside that it demonstrates the use of creating and attaching your READ, WRITE, WRITEWITHOUTREPONSE, INDICATE and NOTIFY attributes for your characteristics etc.