Webcalc-ESP8266/at_basic.cpp

26 lines
334 B
C++

#include <Arduino.h>
// AT: test startup
void at() {
Serial.println("OK");
}
void at_rst() {
void(*reset)(void) = 0;
Serial.println("OK");
reset();
}
void at_gmr() {
extern char* VERSION;
Serial.println(VERSION);
}
void at_gslp(uint32_t t) {
sleep(t);
}
void ate(bool e) {
extern bool echo = e;
}