Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: wiconnect-ota_example wiconnect-web_setup_example wiconnect-test-console wiconnect-tcp_server_example ... more
Diff: internal/network/NetworkInterface.cpp
- Revision:
- 26:8067e3d463d3
- Parent:
- 17:7268f365676b
- Child:
- 27:b63f5a9cdefa
--- a/internal/network/NetworkInterface.cpp Tue Aug 26 16:53:06 2014 -0700
+++ b/internal/network/NetworkInterface.cpp Thu Oct 23 15:16:06 2014 -0700
@@ -109,7 +109,7 @@
CHECK_OTHER_COMMAND_EXECUTING();
- if(WICONNECT_SUCCEEDED(result, wiconnect->sendCommand("get network.dhcp")))
+ if(WICONNECT_SUCCEEDED(result, wiconnect->sendCommand("get network.dhcp.enabled")))
{
int32_t enabled;
if(WICONNECT_SUCCEEDED(result, wiconnect->responseToInt32(&enabled)))
@@ -331,7 +331,36 @@
default:
return "Unknown";
}
-}
+}
+
+/*************************************************************************************************/
+const char* NetworkInterface::networkJoinResultToStr(NetworkJoinResult joinResult)
+{
+ switch(joinResult)
+ {
+ case NETWORK_JOIN_RESULT_NONE:
+ return "None";
+ case NETWORK_JOIN_RESULT_SUCCESS:
+ return "Success";
+ case NETWORK_JOIN_RESULT_JOINING:
+ return "Joining";
+ case NETWORK_JOIN_RESULT_NO_SSID:
+ return "No SSID";
+ case NETWORK_JOIN_RESULT_NO_PASSWORD:
+ return "No Password";
+ case NETWORK_JOIN_RESULT_BAD_SECURITY:
+ return "Bad Security Setting";
+ case NETWORK_JOIN_RESULT_NOT_FOUND:
+ return "Network Not Found";
+ case NETWORK_JOIN_RESULT_FAILED:
+ return "Failed";
+ case NETWORK_JOIN_RESULT_ABORTED:
+ return "Aborted";
+ default:
+ return "Unknown";
+ }
+}
+
/*************************************************************************************************/
const char* NetworkInterface::signalStrengthToStr(NetworkSignalStrength signalStrenth)
AMW006-A02