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

STMClientCmd.cpp

Committer:
ShaneKirkbride
Date:
2016-10-10
Revision:
12:0df73cbe5cbf
Parent:
0:70a6082c1bf7

File content as of revision 12:0df73cbe5cbf:


#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;
}