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