mbed OS examples

Our YouTube channel

https://www.youtube.com/armmbed/

End to end projects

JavaScript on mbed OS 5

BBC micro:bit

A few micro:bit How To videos:

Blinky

  • Blinky: our basic application, showing how to use the APIs to control the LED on the board.

Component examples

mbed TLS

  • Cryptographic benchmark: benchmarks the various cryptographic primitives offered by mbed TLS.

  • Authenticated encryption and decryption: performs authenticated encryption and authenticated decryption of a buffer. It serves as a tutorial for the basic authenticated encryption functions of mbed TLS.

  • Hashing: performs hashing of a buffer with SHA-256 using various APIs. It serves as a tutorial for the basic hashing APIs of mbed TLS.

  • TLS client: downloads a file from an HTTPS server (developer.mbed.org) and looks for a specific string in that file.

mbed uVisor

These examples work on the K64F and GCC_ARM toolchain only.

File system

Get the FAT file system working on an mbed OS platform.

Bootloader

mbed Client

Getting started: a basic example of mbed Client for mbed OS. It demonstrates how to register a device with mbed Device Connector, how to read and write values, and how to deregister.

mesh

Join a device to an insecure 6LoWPAN-ND or Thread network. This is the simplest use of the mesh networking stack.

Nanostack border router

Use the generic mbed border router and create a 6LoWPAN-ND or Thread network. Your 6LoWPAN or Thread devices can access to internet using this gateway.

Sockets

Perform a transaction over TCP using the network-socket API.

Wi-Fi

Perform simple HTTP operations using the Wi-Fi interface.

Bluetooth Low Energy (BLE)

  • Battery level: use the Battery Level service to transmit a device’s battery level.

  • BLE button: BLE service template for a read-only characteristic.

  • GAP button: use GAP to transmit a value to a peer that’s listening for advertisements.

  • Heart rate: transmit a heart rate value using the SIG Heart Rate profile.

  • Thermometer: send thermometer information using the Health Thermometer Profile.

  • Simple LED control: a client using a read/write characteristic to control an LED. This example goes with the LED blinker, a server that uses the GATT client API to control the BLE client device.

  • Beacons send a small amount of information to a nearby device. Try: