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