This is a SLIP interface for the STM32F446RE Nucleo Board. It is designed to work specifically with the esp-link software for the ESP8266. The program is an example of a rest command.

Dependencies:   mbed DHT Matrix

Revision:
8:6a3b7c5d9ba7
Parent:
4:31bed73a0d08
--- a/STMClient.h	Tue Aug 16 16:04:33 2016 +0000
+++ b/STMClient.h	Wed Aug 17 20:57:35 2016 +0000
@@ -16,6 +16,7 @@
   CMD_RESP_V,       // response with a value
   CMD_RESP_CB,      // response with a callback
   CMD_WIFI_STATUS,  // get the wifi status
+  CMD_SLEEP,        // Go to sleep
   CMD_CB_ADD,       // add a custom callback
   CMD_CB_EVENTS,    // ???
   CMD_GET_TIME,     // get current time in seconds since the unix epoch
@@ -31,7 +32,6 @@
   CMD_REST_REQUEST,
   CMD_REST_SETHEADER,
   CMD_REST_EVENTS
-
 } CmdName;
 
 enum WIFI_STATUS {
@@ -95,6 +95,9 @@
     bool Sync(uint32_t timeout=ESP_TIMEOUT);
     // Request the wifi status
     void GetWifiStatus(void);
+    
+    //put the ESP into Deepsleep
+    void Sleep(void);
 
     // Callback for wifi status changes that must be attached before calling Sync
     FP<void, void*> wifiCb;