Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of GSwifi_old by
Diff: GSwifi.h
- 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];
