Damien Frost / WiflyInterface

Dependents:   IoT_Ex BatteryModelTester BatteryModelTester

Fork of WiflyInterface by Components

Revision:
32:ab206f7f5090
Parent:
31:2846355deb7e
Child:
33:26a14bc6d90e
diff -r 2846355deb7e -r ab206f7f5090 Wifly/Wifly.cpp
--- a/Wifly/Wifly.cpp	Mon May 09 11:39:08 2016 +0000
+++ b/Wifly/Wifly.cpp	Thu May 12 16:01:50 2016 +0000
@@ -613,4 +613,11 @@
     }
     
     return status;
+}
+
+void Wifly::sleep(void){
+    // This function puts the module to sleep:
+    sendCommand("sleep\r", NULL);
+    // It will wake up from sleep if any characters are sent to it.
+    return;
 }
\ No newline at end of file