BLE
Getting started
-
Choose an Arm Mbed board that supports BLE, such as the NRF51-DK.
If your platform doesn't support BLE but is compatible with the Arduino UNO R3 connector, you can use an extension board such as the X-NUCLEO-IDB05A1 to add BLE capabilities to your development board.
-
Install a BLE scanner on your phone. It allows you to track all BLE activities from your embedded application. This is a mandatory tool for BLE software development:
-
nRF Connect for Android.
-
LightBlue for iPhone.
-
-
Compile and run our BLE samples:
- Arm Mbed OS 5 samples are available on os.mbed.com and GitHub:
- The beacon example is a good starting point; it demonstrates how you can create a BLE beacon with just a few lines of code.
- The heart rate monitor example demonstrates how to build a heart rate sensor that can be connected and monitored by a BLE client such as your phone.
- The LED and LED blinker are a single example, which demonstrates how a client (LED) and a server (LED blinker) work together over BLE.
Tip: Despite the differences between the different Mbed OS versions, there is only one version of Mbed BLE, and it is easy to move code from one version of the OS to another. Choose the sample you use according to the version of Mbed OS supported by your development board.
- Arm Mbed OS 5 samples are available on os.mbed.com and GitHub:
Going further
-
The Mbed BLE API reference offers the full details of the API.
-
The Mbed BLE online community is also a great place to ask questions and share your knowledge.