http://mbed.org/users/mbed_official/code/mbed-rpc/#4490a0d9cb2a