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.
Dependents: IoT_Ex BatteryModelTester BatteryModelTester
Fork of WiflyInterface by
Diff: Wifly/Wifly.cpp
- 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