diff --git a/src/Configuration/Credentials.h b/src/Configuration/Credentials.h index be14c2d..83ab662 100644 --- a/src/Configuration/Credentials.h +++ b/src/Configuration/Credentials.h @@ -2,6 +2,6 @@ namespace Credentials { - extern const char* WiFi_SSID; - extern const char* WiFi_Password; + extern const char *WiFi_SSID; + extern const char *WiFi_Password; } \ No newline at end of file diff --git a/src/Configuration/Version.h b/src/Configuration/Version.h new file mode 100644 index 0000000..58b4cf4 --- /dev/null +++ b/src/Configuration/Version.h @@ -0,0 +1,8 @@ +#pragma once + +namespace Version +{ + constexpr uint8_t Major = 1; + constexpr uint8_t Minor = 0; + constexpr uint8_t Patch = 0; +} \ No newline at end of file diff --git a/src/Main.cpp b/src/Main.cpp index 725d4c3..d6782e6 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -1,4 +1,5 @@ #include +#include "Configuration/Version.h" #include "Components/WiFi/WifiConnection.h" #include "Components/Modbus/ModbusRTU.h" #include "Components/Modbus/ModbusTCP.h" @@ -14,7 +15,8 @@ void setup() // Print version info Serial.println("Booting HeidelBridge"); - Serial.printf("Build date: %s\n", __DATE__); + Serial.printf(" Version: %d.%d.%d\n", Version::Major, Version::Minor, Version::Patch); + Serial.printf(" Build date: %s\n", __DATE__); Serial.println(""); // Make sure WiFi connection is up and running