Skip to content

Commit

Permalink
Adding version info
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisBrock committed Sep 14, 2024
1 parent 298d8d1 commit b0d70c0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Configuration/Credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
8 changes: 8 additions & 0 deletions src/Configuration/Version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#pragma once

namespace Version
{
constexpr uint8_t Major = 1;
constexpr uint8_t Minor = 0;
constexpr uint8_t Patch = 0;
}
4 changes: 3 additions & 1 deletion src/Main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <Arduino.h>
#include "Configuration/Version.h"
#include "Components/WiFi/WifiConnection.h"
#include "Components/Modbus/ModbusRTU.h"
#include "Components/Modbus/ModbusTCP.h"
Expand All @@ -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
Expand Down

0 comments on commit b0d70c0

Please sign in to comment.