Update to new communication protocol

This commit is contained in:
2023-03-16 14:23:19 +01:00
parent 8e232a9123
commit d59262947e
2 changed files with 4 additions and 3 deletions
+2 -3
View File
@@ -24,11 +24,10 @@ void MessageHandler::HandleMessage(const std::string& message)
nlohmann::json data = nlohmann::json::parse(message);
if (data.contains("code"))
if (data.contains("timeToLiveSeconds"))
{
if (data["code"] == 510)
if (data["timeToLiveSeconds"] < 60)
m_signal.emit();
return;
}
auto updateDataSet = data["updateDataSet"];