Skip to content

Commit

Permalink
Set version correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
bullestock committed Jul 4, 2024
1 parent 13f360e commit ff211ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/esp32/main/gateway.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion frontend/esp32/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.23
1.3.24

0 comments on commit ff211ed

Please sign in to comment.