cc3000 hostdriver with the mbed socket interface
Dependents: cc3000_hello_world_demo cc3000_simple_socket_demo cc3000_ntp_demo cc3000_ping_demo ... more
Diff: cc3000.cpp
- Revision:
- 48:192e2fde71e9
- Parent:
- 47:a63fe1a4f568
diff -r a63fe1a4f568 -r 192e2fde71e9 cc3000.cpp
--- a/cc3000.cpp Tue Jan 20 09:04:49 2015 +0000
+++ b/cc3000.cpp Sat Feb 28 16:40:39 2015 +0000
@@ -99,6 +99,7 @@
}
void cc3000::init(const char *ip, const char *mask, const char *gateway) {
+ _wlan.start(0);
_netapp.dhcp((uint32_t *)ip, (uint32_t *)mask, (uint32_t *)gateway, (uint32_t *)ip); //dns = ip
_wlan.stop();
wait(1);
SimpleLink Wi-Fi CC3000
Avnet Wi-Go System