tcp client for cc3000, using mbed socket interface
Dependencies: NVIC_set_all_priorities cc3000_hostdriver_mbedsocket mbed
Diff: main.cpp
- Revision:
- 5:fbcd3cb3c81c
- Parent:
- 4:51ad2e8bedb9
--- a/main.cpp Thu Nov 07 18:39:21 2013 +0000 +++ b/main.cpp Thu Nov 07 18:43:03 2013 +0000 @@ -22,8 +22,6 @@ using namespace mbed_cc3000; -using namespace mbed_cc3000; - /* cc3000 module declaration specific for user's board. Check also init() */ #if (MY_BOARD == WIGO) cc3000 wifi(PTA16, PTA13, PTD0, SPI(PTD2, PTD3, PTC5), "ssid", "key", WPA2, false); @@ -47,7 +45,7 @@ init(); /* board dependent init */ pc.baud(115200); - printf("CC3000 tcp client demo. \r\n"); + printf("cc3000 tcp client demo. \r\n"); wifi.init(); if (wifi.connect() == -1) { printf("Failed to connect. Please verify connection details and try again. \r\n"); @@ -75,5 +73,4 @@ socket.close(); printf("Completed. \r\n"); wifi.disconnect(); - }