Damien Frost / WiflyInterface

Dependents:   IoT_Ex BatteryModelTester BatteryModelTester

Fork of WiflyInterface by Components

Revision:
30:2c704a72d88a
Parent:
26:eaaedb036df1
Child:
31:2846355deb7e
diff -r c991041e766e -r 2c704a72d88a Wifly/Wifly.h
--- a/Wifly/Wifly.h	Wed May 04 14:31:22 2016 +0000
+++ b/Wifly/Wifly.h	Wed May 04 22:09:22 2016 +0000
@@ -203,6 +203,14 @@
     bool sendCommand(const char * cmd, const char * ack = NULL, char * res = NULL, int timeout = DEFAULT_WAIT_RESP_TIMEOUT);
     
     /**
+    * Check if the wifly module is still connected to the network:
+    *
+    * @return 0: if not connected
+    *         1: if connected
+    */
+    int checkNetworkStatus(void);
+    
+    /**
     * Return true if the module is using dhcp
     *
     * @return true if the module is using dhcp