send timestamp on mqtt

This commit is contained in:
theFeiter 2022-07-20 23:19:27 +02:00
parent a8339f1136
commit b7541a8e00

View File

@ -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);