Skip to content

Commit

Permalink
Add version header file
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCAFEDECAF committed Nov 5, 2024
1 parent 951ea98 commit 8e027a8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
17 changes: 8 additions & 9 deletions VanLiveConnect/VanLiveConnect.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -12,22 +12,21 @@

#include "Config.h"
#include "VanIden.h"
#include "VanLiveConnectVersion.h"

#include <EEPROM.h>
#include <VanBusRx.h>

#ifdef USE_MDNS
#include <ESP8266mDNS.h>
#include <ESP8266mDNS.h>
#endif // USE_MDNS

#ifdef WIFI_AP_MODE
#include <DNSServer.h>

#include <DNSServer.h>

#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!
Expand Down Expand Up @@ -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();
Expand Down
22 changes: 22 additions & 0 deletions VanLiveConnect/VanLiveConnectVersion.h
Original file line number Diff line number Diff line change
@@ -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 "1.1.0"

#define VAN_LIVE_CONNECT_VERSION_MAJOR 1
#define VAN_LIVE_CONNECT_VERSION_MINOR 1
#define VAN_LIVE_CONNECT_VERSION_PATCH 0

#define VAN_LIVE_CONNECT_VERSION_INT 001001000

#endif /* VanLiveConnectVersion_h */

0 comments on commit 8e027a8

Please sign in to comment.