http://developer.mbed.org/teams/Delta/code/BLE_API/#7a2fdb28d513