Skip to content

Commit

Permalink
Update MQTT code to support reboot and bump minor version to 26 (#15)
Browse files Browse the repository at this point in the history
All set
  • Loading branch information
Krazy998 authored Feb 1, 2023
1 parent 4e3538f commit 08c6468
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// firmware version for EEPROM data integrity check
#define VERSION_MAJOR 1
#define VERSION_MINOR 25
#define VERSION_MINOR 26
#define VERSION_ID VERSION_MAJOR * 100 + VERSION_MINOR

// earliest firmware version not requiring the EEPROM reset
Expand Down
3 changes: 3 additions & 0 deletions src/nodes/node-mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ void c_mqtt::f_onReceiveHandler(char* s_topic, uint8_t* s_payload, unsigned int
else if (!strcmp((char*)s_payload, "get-config")) {
f_publishConfig();
}
else if (!strcmp((char*)s_payload, "reboot")) {
System.reset();
}
else {
c_doorStatus n_status = c_config::f_statusEnum((char*)s_payload);
if (n_status == STATUS_UNKNOWN) {
Expand Down

0 comments on commit 08c6468

Please sign in to comment.