From ff211ed906b58ceaea58a971850915e16182686a Mon Sep 17 00:00:00 2001 From: Torsten Martinsen Date: Thu, 4 Jul 2024 23:25:55 +0200 Subject: [PATCH] Set version correctly. --- frontend/esp32/main/gateway.cpp | 4 ++-- frontend/esp32/version.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/esp32/main/gateway.cpp b/frontend/esp32/main/gateway.cpp index 39d87965..04e6aed3 100644 --- a/frontend/esp32/main/gateway.cpp +++ b/frontend/esp32/main/gateway.cpp @@ -47,14 +47,14 @@ void Gateway::set_status(const cJSON* status) } auto heartbeat = cJSON_CreateString(timestamp); cJSON_AddItemToObject(status_copy, "card_reader_heartbeat", heartbeat); + auto version = cJSON_CreateString(esp_app_get_description()->version); + cJSON_AddItemToObject(status_copy, "version", version); auto payload = cJSON_CreateObject(); cJSON_wrapper jw(payload); auto jtoken = cJSON_CreateString(token.c_str()); cJSON_AddItemToObject(payload, "token", jtoken); auto jident = cJSON_CreateString(get_identifier().c_str()); cJSON_AddItemToObject(payload, "device", jident); - auto version = cJSON_CreateString(esp_app_get_description()->version); - cJSON_AddItemToObject(payload, "version", version); cJSON_AddItemToObject(payload, "status", status_copy); auto data = cJSON_Print(payload); cJSON_Print_wrapper pw(data); diff --git a/frontend/esp32/version.txt b/frontend/esp32/version.txt index 5bc23cdb..98390b6f 100644 --- a/frontend/esp32/version.txt +++ b/frontend/esp32/version.txt @@ -1 +1 @@ -1.3.23 +1.3.24