Test serial console demonstrating various API functions of WiConnect library.

Dependencies:   WiConnect mbed

Files at this revision

API Documentation at this revision

Comitter:
dan_ackme
Date:
Mon Aug 11 16:36:28 2014 -0700
Parent:
6:f6389c0b2260
Child:
8:7c79096e935b
Child:
9:dddf6ed7e992
Commit message:
fixed bug in network tests

Changed in this revision

tests/blocking/network/NetworkTests.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/tests/blocking/network/NetworkTests.cpp	Mon Aug 11 23:18:51 2014 +0000
+++ b/tests/blocking/network/NetworkTests.cpp	Mon Aug 11 16:36:28 2014 -0700
@@ -22,13 +22,13 @@
     NetworkStatus status;
     NetworkSignalStrength signal;
     uint32_t ip, nm, gw;
-    bool dhcpEnabled = false;
+    bool dhcpEnabled;
 
     if(WICONNECT_FAILED(result, wiconnect->getIpSettings(&ip, &nm, &gw)))
     {
         LOG_INFO("Failed to get IP Settings");
     }
-    else if(WICONNECT_FAILED(result, wiconnect->setDhcpEnabled(&dhcpEnabled)))
+    else if(WICONNECT_FAILED(result, wiconnect->getDhcpEnabled(&dhcpEnabled)))
     {
         LOG_INFO("Failed to get DHCP setting");
     }