Tutorials overview

Our tutorials are here to help you learn how to use BLE on mbed boards, and with the mbed Compiler. All tutorials include a quick-guide for experienced developers and more detailed explanations for new developers. A few of the first tutorials include some C++ background.

Please note: the code in these examples is for mbed OS 2.0 and 5.0. If you want to see the code adjusted for mbed OS 3.0, please see our BLE samples on GitHub

The tutorials are numbered. You can work through them in any order you want, but if you’re new to C++, you should probably go by the order we’ve suggested.

  1. The UriBeacon tutorial introduces the IDE, some C++ concepts and a working UriBeacon.

  2. The Heart Rate tutorial introduces loops and conditions, and a simulated heart rate monitor reading.

For all of these, you should have:

  1. A BLE-enabled mbed board. But don’t worry if you don’t have one yet - we’ll show you how it would have worked.

  2. A user account on developer.mbed.org to see the compiler. We recommend you get access to the compiler even if you don’t have a board yet, so that you can play along with the example.

Some tutorials will have additional requirements, such as phone apps or additional hardware. These will be listed for each tutorial as needed.

Videos

We have a YouTube channel with videos that you might find useful:

  1. mbed quick start: for a first-time user with a new board.

  2. UriBeacon example: how to create a BLE UriBeacon using the mbed platform. We will import the project, modify the UriBeacon, compile, load code to the board, and demonstrate how to scan for the beacon with the Physical Web app.

  3. BLE GAP example: how to use the GAP advertising packet to transmit data with a BLE capable mbed platform. First without a name, then adding a name service to the device.

  4. Firmware updates: how to update the firmware on an mbed platform.