![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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.
Diff: STMClient.cpp
- Revision:
- 8:6a3b7c5d9ba7
- Parent:
- 4:31bed73a0d08
diff -r ff4efdc27514 -r 6a3b7c5d9ba7 STMClient.cpp --- a/STMClient.cpp Tue Aug 16 16:04:33 2016 +0000 +++ b/STMClient.cpp Wed Aug 17 20:57:35 2016 +0000 @@ -33,9 +33,8 @@ //_debug->printf("resp_crc: %i\n\r",resp_crc); if (crc != resp_crc) { DBG("STMC: Invalid CRC\n\r"); - wait(0.25); - - //return NULL; maybe the CRC isn't getting calculated correctly... + wait(0.25); + return NULL; //maybe the CRC isn't getting calculated correctly... } // dispatch based on command @@ -270,6 +269,12 @@ // doesn't look like we got a real response return false; } + //look in cmd.c for this. Puts ESP to sleep until a fall edge triggers on RST for it to reset. + +void STMClient::Sleep(void){ + Request(CMD_SLEEP, 0, 0); + Request(); +} void STMClient::GetWifiStatus(void) { Request(CMD_WIFI_STATUS, 0, 0);