MySensors Library & Examples  2.3.2-62-ge298769
Version.h
Go to the documentation of this file.
1 /*
2  * The MySensors Arduino library handles the wireless radio link and protocol
3  * between your home built sensors/actuators and HA controller of choice.
4  * The sensors forms a self healing radio network with optional repeaters. Each
5  * repeater and gateway builds a routing tables in EEPROM which keeps track of the
6  * network topology allowing messages to be routed to nodes.
7  *
8  * Created by Henrik Ekblad <[email protected]>
9  * Copyright (C) 2013-2022 Sensnology AB
10  * Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
11  *
12  * Documentation: http://www.mysensors.org
13  * Support Forum: http://forum.mysensors.org
14  *
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License
17  * version 2 as published by the Free Software Foundation.
18  */
19 
43 #ifndef Version_h
44 #define Version_h
45 
46 #define STR_HELPER(x) #x
47 #define STR(x) STR_HELPER(x)
48 
49 #define MYSENSORS_LIBRARY_VERSION_MAJOR 2
50 #define MYSENSORS_LIBRARY_VERSION_MINOR 4
51 #define MYSENSORS_LIBRARY_VERSION_PATCH 0
52 #define MYSENSORS_LIBRARY_VERSION_PRERELEASE "alpha"
53 #define MYSENSORS_LIBRARY_VERSION_PRERELEASE_NUMBER 0x01
54 
55 
56 #if (MYSENSORS_LIBRARY_VERSION_PRERELEASE_NUMBER != 0xFF)
57 #define MYSENSORS_LIBRARY_VERSION STR(MYSENSORS_LIBRARY_VERSION_MAJOR) "." STR(MYSENSORS_LIBRARY_VERSION_MINOR) "." STR(MYSENSORS_LIBRARY_VERSION_PATCH) "-" MYSENSORS_LIBRARY_VERSION_PRERELEASE
58 #else
59 #define MYSENSORS_LIBRARY_VERSION STR(MYSENSORS_LIBRARY_VERSION_MAJOR) "." STR(MYSENSORS_LIBRARY_VERSION_MINOR) "." STR(MYSENSORS_LIBRARY_VERSION_PATCH)
60 #endif
61 
62 #define MYSENSORS_LIBRARY_VERSION_INT ( ((uint32_t)MYSENSORS_LIBRARY_VERSION_MAJOR) << 24 | ((uint32_t)MYSENSORS_LIBRARY_VERSION_MINOR) << 16 | ((uint32_t)MYSENSORS_LIBRARY_VERSION_PATCH) << 8 | ((uint32_t)MYSENSORS_LIBRARY_VERSION_PRERELEASE_NUMBER) )
63 
64 #endif // Version_h
65