Tests for LWIPInterface
Dependencies: LWIPInterface NSAPITests NetworkSocketAPI mbed-rtos mbed
Diff: main.cpp
- Revision:
- 2:9181decb4d5c
- Parent:
- 0:5290cb128aed
- Child:
- 3:50ac0af2ea9c
diff -r 1f41e5d47771 -r 9181decb4d5c main.cpp --- a/main.cpp Thu Mar 03 21:07:18 2016 +0000 +++ b/main.cpp Wed Mar 09 07:04:37 2016 +0000 @@ -17,19 +17,18 @@ #include "mbed.h" #include "LWIPInterface.h" #include "NSAPITests.h" - + LWIPInterface iface; - + int main() { int32_t result = iface.connect(); - + if (result) { - printf("Interface failed to connect with code %d\r\n", result); + printf("Interface failed to connect with code %d\r\n", result); } else { nsapi_tests("BSDInterface Tests", &iface, "0.0.0.0", 4000); iface.disconnect(); } - while(1) { - } + while(1); }