mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-08 13:10:29 +00:00
Update fdrs_functions.h
fixed something
This commit is contained in:
parent
f6b2ca4568
commit
2bc728de82
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user