Webcalc-ESP8266/at_basic.cpp

26 lines
334 B
C++
Raw Normal View History

2020-07-03 19:32:29 +02:00
#include <Arduino.h>
// AT: test startup
void at() {
2020-07-05 09:38:53 +02:00
Serial.println("OK");
2020-07-03 19:32:29 +02:00
}
void at_rst() {
2020-07-05 09:38:53 +02:00
void(*reset)(void) = 0;
Serial.println("OK");
reset();
2020-07-03 19:32:29 +02:00
}
void at_gmr() {
2020-07-05 09:38:53 +02:00
extern char* VERSION;
Serial.println(VERSION);
2020-07-03 19:32:29 +02:00
}
2020-07-05 09:38:53 +02:00
void at_gslp(uint32_t t) {
sleep(t);
2020-07-03 19:32:29 +02:00
}
2020-07-05 09:38:53 +02:00
void ate(bool e) {
extern bool echo = e;
2020-07-03 19:32:29 +02:00
}