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