WIFI library for WIFI Shield of Seeed Studio

Fork of WiflyInterface by mbed official

Revision:
5:26ae56c7cb3d
Parent:
1:fb4494783863
--- a/Wifly/Wifly.cpp	Fri Aug 24 13:48:36 2012 +0000
+++ b/Wifly/Wifly.cpp	Thu Dec 19 09:56:59 2013 +0000
@@ -42,8 +42,8 @@
 
 Wifly * Wifly::inst;
 
-Wifly::Wifly(   PinName tx, PinName rx, PinName _reset, PinName tcp_status, const char * ssid, const char * phrase, Security sec):
-    wifi(tx, rx), reset_pin(_reset), tcp_status(tcp_status), buf_wifly(256)
+Wifly::Wifly(   PinName tx, PinName rx, const char * ssid, const char * phrase, Security sec):
+    wifi(tx, rx), buf_wifly(256)
 {
     memset(&state, 0, sizeof(state));
     state.sec = sec;
@@ -342,16 +342,13 @@
 
 bool Wifly::is_connected()
 {
-    return (tcp_status.read() ==  1) ? true : false;
+    return state.tcp;
 }
 
 
 void Wifly::reset()
 {
-    reset_pin = 0;
-    wait(0.2);
-    reset_pin = 1;
-    wait(0.2);
+    // Not available
 }
 
 bool Wifly::close()