![](/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: STMClientCmd.cpp
- Revision:
- 0:70a6082c1bf7
diff -r 000000000000 -r 70a6082c1bf7 STMClientCmd.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/STMClientCmd.cpp Thu Jul 14 20:38:18 2016 +0000 @@ -0,0 +1,12 @@ + +#include "STMClientCmd.h" + +STMClientCmd::STMClientCmd(STMClient* elc) :_elc(elc) {} + +uint32_t STMClientCmd::GetTime() { + _elc->Request(CMD_GET_TIME, 0, 0); + _elc->Request(); + + STMClientPacket *pkt = _elc->WaitReturn(); + return pkt ? pkt->value : 0; +} \ No newline at end of file