V1.03 déployée sur site (station Laval)

This commit is contained in:
2023-09-07 14:55:23 -04:00
parent 2919a2cfe7
commit a8037acadc
84 changed files with 4833 additions and 1315 deletions
+5 -1
View File
@@ -143,7 +143,11 @@ CMQTTMessage CCANDataLogger::GetMQTTMessage(CCANMessage *Msg, bool Format )
#ifdef MQTT_TIMESTAMP_IN_PAYLOAD
QString TimeStamp = QDateTime::currentDateTime().toString(Qt::ISODate);
MsgPayload.append(QString("\"timestamp\":%1,").arg(TimeStamp));
MsgPayload.append(QString("\"timestamp\":\"%1\",").arg(TimeStamp));
if(Format == true)
{
MsgPayload.append("\n");
}
#endif
//For each signal with new data, insert an entry in the JSon payload string