https://developer.mbed.org/users/pnysten/code/cantcoap/#d0d57af6c9df