http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#501ad8b8bbe5