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:
9:bd7f083d55ad
Parent:
8:6a3b7c5d9ba7
Child:
10:ae1d07ffddea
--- a/main.cpp	Wed Aug 17 20:57:35 2016 +0000
+++ b/main.cpp	Wed Aug 17 21:14:04 2016 +0000
@@ -31,6 +31,16 @@
 Ticker post_data;
 bool posted = false;
 bool ESPisAsleep = false;
+
+void toggleLEDSuccess(){
+        led2 = 1;
+        wait(0.25);
+        led2 = 0;
+        wait(0.25);
+        led2 = 1;
+        wait(0.25);
+}
+        
 // Callback made from esp-link to notify of wifi status changes
 // Here we print something out and set a global flag
 void wifiCb(void *response) {
@@ -208,6 +218,7 @@
 }
 
 void flip() {
+    led2 = 1;
     if(ESPisAsleep){      
         debugSerial.printf("syncing...\n\r");
         LCD_D7 = 0;
@@ -223,8 +234,7 @@
     int postVal = loop_post();
     if(!postVal)
     {
-        led2 = 1;
-        wait(0.5); 
+        toggleLEDSuccess(); //flashes the LED to show the post was successful
         posted = true;
     }else{
         debugSerial.printf("error...%i\n\r",postVal);