summaryrefslogtreecommitdiff
path: root/cc3200/mods/modwlan.h
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-06-03 17:28:03 +0200
committerDaniel Campora <daniel@wipy.io>2015-06-03 17:31:21 +0200
commitcc20482aa997af7c20fe4ec9cad85762aa52b458 (patch)
tree74887d6293eeecdab78ee42cba3cec2a27449fa5 /cc3200/mods/modwlan.h
parenta546acda8c4c1342ee5f0e50733915e15a775756 (diff)
cc3200: Add method to configure the servers timeout.
With network.server_timeout(secs) the timeout can be changed. The default value is 300 secs. Minimmum accpeted is 5 secs. Without params the function returns the current configured timeout.
Diffstat (limited to 'cc3200/mods/modwlan.h')
-rw-r--r--cc3200/mods/modwlan.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc3200/mods/modwlan.h b/cc3200/mods/modwlan.h
index 3e90258b7..82fe4f8c6 100644
--- a/cc3200/mods/modwlan.h
+++ b/cc3200/mods/modwlan.h
@@ -62,6 +62,7 @@ extern void wlan_stop (uint32_t timeout);
extern void wlan_start (void);
extern void wlan_get_mac (uint8_t *macAddress);
extern void wlan_get_ip (uint32_t *ip);
+extern bool wlan_is_connected (void);
extern int wlan_gethostbyname(const char *name, mp_uint_t len, uint8_t *out_ip, uint8_t family);
extern int wlan_socket_socket(mod_network_socket_obj_t *s, int *_errno);