http://developer.mbed.org/teams/NetworkSocketAPI/code/wifi_interface/#80ece8d5aa2d