Skip to content

Commit

Permalink
Add version to GW status.
Browse files Browse the repository at this point in the history
Show space as open for all instances.
  • Loading branch information
bullestock committed Jul 4, 2024
1 parent e498c54 commit 2e7fdfd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions frontend/esp32/main/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,8 @@ void Controller::check_thursday()
}
state = State::open;
if (is_main)
{
Slack_writer::instance().announce_open();
is_space_open = true;
}
is_space_open = true;
}

Buttons::Keys Controller::read_keys(bool log)
Expand Down
3 changes: 3 additions & 0 deletions frontend/esp32/main/gateway.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <mbedtls/base64.h>
#include <esp_app_desc.h>
#include <esp_event.h>
#include <esp_log.h>
#include <esp_netif.h>
Expand Down Expand Up @@ -52,6 +53,8 @@ void Gateway::set_status(const cJSON* status)
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.22
1.3.23

0 comments on commit 2e7fdfd

Please sign in to comment.