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:
3:8ed85d940c4c
Parent:
2:20ea1be14e4b
Child:
4:31bed73a0d08
--- a/STMClient.cpp	Thu Aug 04 19:44:11 2016 +0000
+++ b/STMClient.cpp	Fri Aug 05 16:04:04 2016 +0000
@@ -33,7 +33,7 @@
   //_debug->printf("resp_crc: %i\n\r",resp_crc);
   if (crc != resp_crc) {
     DBG("STMC: Invalid CRC\n\r");
-    wait(0.5);
+    wait(0.25);
     
     //return NULL; maybe the CRC isn't getting calculated correctly...
   }
@@ -112,7 +112,7 @@
 // Write some bytes to the output stream
 void STMClient::write(void* data, uint16_t len) {
   uint8_t *d = (uint8_t*)data;
-  _debug->printf("Writing: 0x%x\n\r", (const char*)data);
+  //_debug->printf("Writing: 0x%x\n\r", (const char*)data);
   while (len--)
   {
     write(*d++);
@@ -122,8 +122,8 @@
 // Start a request. cmd=command, value=address of callback pointer or first arg,
 // argc=additional argument count
 void STMClient::Request(uint16_t cmd, uint32_t value, uint16_t argc) {
-  _debug->printf("Starting a request...\n\r");
-  wait(0.5);
+  //_debug->printf("Starting a request...\n\r");
+  wait(0.25);
   crc = 0;
   _serial->putc(SLIP_END);