Update fdrs_functions.h

fixed something
This commit is contained in:
Timm Bogner 2022-04-20 11:05:41 -05:00 committed by GitHub
parent f6b2ca4568
commit 2bc728de82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,8 +78,8 @@ void getSerial() {
DynamicJsonDocument doc(24576);
DeserializationError error = deserializeJson(doc, incomingString);
if (error) { // Test if parsing succeeds.
Serial.print("parse err: ");
Serial.println(incomingString);
//Serial.print("parse err: ");
//Serial.println(incomingString);
return;
} else {
int s = doc.size();
@ -175,10 +175,12 @@ void sendSerial() {
doc[i]["data"] = theData[i].d;
}
serializeJson(doc, UART_IF);
serializeJson(doc, Serial);
UART_IF.println();
Serial.println();
#ifndef ESP8266
serializeJson(doc, Serial);
Serial.println();
#endif
}
void sendMQTT() {