Skip to content

Instantly share code, notes, and snippets.

@BenJuan26
Created April 17, 2020 03:06
Show Gist options
  • Save BenJuan26/cd0239e49b57b1ac31357c1160a82064 to your computer and use it in GitHub Desktop.
Save BenJuan26/cd0239e49b57b1ac31357c1160a82064 to your computer and use it in GitHub Desktop.
void serialRx() {
if (!Serial.available()) {
return;
}
DynamicJsonBuffer jsonBuffer(512);
JsonObject &root = jsonBuffer.parseObject(Serial);
if (!root.success()) {
return;
}
long flags = root["Flags"];
currentFlags = flags;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment