gs fan / GSwifi_old

Fork of GSwifi_old by gs fan

Revision:
24:5c350ae2e703
Parent:
23:a783c62c36d0
--- a/GSwifi.h	Mon Jan 21 05:58:28 2013 +0000
+++ b/GSwifi.h	Wed Jan 23 07:41:23 2013 +0000
@@ -156,10 +156,11 @@
      * @param ssid SSID
      * @param pass pass phrase
      * @param dhcp 0:static ip, 1:dhcp
+     * @param reconnect auto re-connect
      * @retval 0 success
      * @retval -1 failure
      */
-    int connect (GSSECURITY sec, const char *ssid, const char *pass, int dhcp = 1);
+    int connect (GSSECURITY sec, const char *ssid, const char *pass, int dhcp = 1, int reconnect = 0);
     /**
      * adhock
      * @param sec GSSEC_OPEN or GSSEC_WEP
@@ -445,6 +446,8 @@
     RingBuffer _buf_cmd;
     struct GS_Socket _gs_sock[16];
     time_t _time;
+    char *_ssid;
+    int _reconnect, _reconnect_count;
     
 #ifdef GS_USE_HTTPD
     struct GS_httpd _httpd[16];