mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-10 07:10:42 +00:00
send timestamp on mqtt
This commit is contained in:
parent
a8339f1136
commit
b7541a8e00
@ -377,6 +377,7 @@ void sendMQTT() {
|
||||
doc[i]["id"] = theData[i].id;
|
||||
doc[i]["type"] = theData[i].t;
|
||||
doc[i]["data"] = theData[i].d;
|
||||
doc[i]["time"] = time(nullptr);
|
||||
}
|
||||
String outgoingString;
|
||||
serializeJson(doc, outgoingString);
|
||||
|
Loading…
Reference in New Issue
Block a user