ACKme
/
wiconnect-test-console
Test serial console demonstrating various API functions of WiConnect library.
Diff: tests/blocking/network/NetworkTests.cpp
- Revision:
- 7:b3cbb18422e4
- Parent:
- 2:2f222449973a
- Child:
- 12:3dd3a1be40c1
--- 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"); }