Skip to content

Instantly share code, notes, and snippets.

View oliexe's full-sized avatar

Ondrej Rehacek oliexe

View GitHub Profile
@oliexe
oliexe / gist:6741eb10763b5b8eb3e53167c7df6563
Created January 9, 2020 08:00
AT Command Sener/Parser for ESP8266
bool modem_command(String command, String expected_result_excerpt , unsigned int timeout){
String response;
if (DEBUG) Serial.print("[MODEM] " + command);
//Send the AT command
mySerial.println(command);
while (mySerial.available() == 0); // wait for first char
//Wait and process repsonse
unsigned long lastRead = millis(); // last time a char was available
@-webkit-keyframes popperIn {
0% {
opacity: 0;
-webkit-transform: scale(1.06);
}
40% {
opacity: 1;
}