Skip to content

Instantly share code, notes, and snippets.

Avatar
🍉
Doing stuff

Ondrej Rehacek olirehacek

🍉
Doing stuff
View GitHub Profile
View gist:583b919c7374d5cc0f5402d70ecec082
@-webkit-keyframes popperIn {
0% {
opacity: 0;
-webkit-transform: scale(1.06);
}
40% {
opacity: 1;
}
@olirehacek
olirehacek / gist:6741eb10763b5b8eb3e53167c7df6563
Created Jan 9, 2020
AT Command Sener/Parser for ESP8266
View gist:6741eb10763b5b8eb3e53167c7df6563
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