Skip to content

Commit

Permalink
Set firmware version via global define, so that it can be overwritten…
Browse files Browse the repository at this point in the history
… by the CI pipeline
  • Loading branch information
xx committed Jun 9, 2024
1 parent 14c13ad commit 0b503d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions firmware/esp32/gdoor/src/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#define DEFINES_H

// GDoor
#define GDOOR_VERSION "dev"
#define MAX_WORDLEN 25

// RX Statemachine
Expand Down
4 changes: 2 additions & 2 deletions firmware/esp32/gdoor/src/mqtt_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ R"""(
"icon": "mdi:door",
"value_template": "{{ value_json.action }}",
"device": {
"sw_version": "3.0",
"name": "GDoor Adapter",
"manufacturer": "GDoor Project",
)"""
"";


message += "\"sw_version\": \"" + String(GDOOR_VERSION) + "\",";
message += "\"model\": \"ESP32 (" + mac + ")\",";
message += "\"configuration_url\": \"http://" + ip + "\",";
message += "\"ids\": \"gdoor_" + mac_clean + "\"";
Expand Down

0 comments on commit 0b503d7

Please sign in to comment.