From 54c9076f49680066e9d527e94d44c5cabe404d23 Mon Sep 17 00:00:00 2001 From: Erik Tromp Date: Tue, 5 Nov 2024 15:52:13 +0100 Subject: [PATCH] Add version header file --- VanLiveConnect/VanLiveConnect.ino | 17 ++++++++--------- VanLiveConnect/VanLiveConnectVersion.h | 22 ++++++++++++++++++++++ 2 files changed, 30 insertions(+), 9 deletions(-) create mode 100644 VanLiveConnect/VanLiveConnectVersion.h diff --git a/VanLiveConnect/VanLiveConnect.ino b/VanLiveConnect/VanLiveConnect.ino index 771b590..aad91d3 100644 --- a/VanLiveConnect/VanLiveConnect.ino +++ b/VanLiveConnect/VanLiveConnect.ino @@ -3,7 +3,7 @@ * * Written by Erik Tromp * - * Version 1.0.0 - March, 2023 + * Version 1.1.0 - November, 2024 * * MIT license, all text above must be included in any redistribution. * @@ -12,22 +12,21 @@ #include "Config.h" #include "VanIden.h" +#include "VanLiveConnectVersion.h" #include #include #ifdef USE_MDNS -#include + #include #endif // USE_MDNS #ifdef WIFI_AP_MODE + #include -#include - -#define DNS_PORT (53) -DNSServer dnsServer; -IPAddress apIP; - + #define DNS_PORT (53) + DNSServer dnsServer; + IPAddress apIP; #endif // WIFI_AP_MODE // Encourage the compiler to use the a newer (C++11 ?) standard. If this is removed, it doesn't compile! @@ -289,7 +288,7 @@ void setup() delay(1000); Serial.begin(115200); - Serial.print(F("\nStarting VAN bus \"Live Connect\" server\n")); + Serial.printf_P(PSTR("\nStarting VAN bus \"Live Connect\" server version %s\n"), VAN_LIVE_CONNECT_VERSION); PrintDebugDefines(); PrintSystemSpecs(); diff --git a/VanLiveConnect/VanLiveConnectVersion.h b/VanLiveConnect/VanLiveConnectVersion.h new file mode 100644 index 0000000..37bf290 --- /dev/null +++ b/VanLiveConnect/VanLiveConnectVersion.h @@ -0,0 +1,22 @@ +/* + * VanLiveConnect - Show all received information from the VAN bus on a "live" web page. + * + * Written by Erik Tromp + * + * Version 1.1.0 - November, 2024 + * + * MIT license, all text above must be included in any redistribution. + */ + +#ifndef VanLiveConnectVersion_h +#define VanLiveConnectVersion_h + +#define VAN_LIVE_CONNECT_VERSION "0.1.1" + +#define VAN_LIVE_CONNECT_VERSION_MAJOR 0 +#define VAN_LIVE_CONNECT_VERSION_MINOR 1 +#define VAN_LIVE_CONNECT_VERSION_PATCH 1 + +#define VAN_LIVE_CONNECT_VERSION_INT 000001001 + +#endif /* VanLiveConnectVersion_h */