http://mbed.org/users/bokunimowakaru/code/xbee/#ddded5d4f96c