ACTUALIZED LIBRARY 0 Open (Default) 1 WEP-128 2 WPA1 3 Mixed WPA1 & WPA2-PSK 4 WPA2-PSK 5 Not Used 6 Adhoc, Join any Adhoc network
Dependents: mbed_Arduino_sensor
Fork of WiflyInterface by
Diff: WiflyInterface.cpp
- Revision:
- 4:74bfdd00362a
- Parent:
- 0:6ffb0aeb3972
- Child:
- 7:a92dbed32890
--- a/WiflyInterface.cpp Wed Aug 22 16:22:32 2012 +0000 +++ b/WiflyInterface.cpp Thu Aug 23 10:32:45 2012 +0000 @@ -32,7 +32,8 @@ char * WiflyInterface::getIPAddress() { char * match = 0; if (!ip_set) { - sendCommand("get ip a\r", NULL, ip_string); + if (!sendCommand("get ip a\r", NULL, ip_string)) + return NULL; exit(); match = strstr(ip_string, "<"); if (match != NULL) {