MQTT-SN Gateway Library
Library that allows implementation of MQTT-SN gateway.
Loading...
Searching...
No Matches
versionpp.h
Go to the documentation of this file.
1//
2// Copyright 2020 - 2024 (C). Alex Robenko. All rights reserved.
3//
4// This Source Code Form is subject to the terms of the Mozilla Public
5// License, v. 2.0. If a copy of the MPL was not distributed with this
6// file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
10
11#pragma once
12
13#include "version.h"
14
15namespace cc_mqttsn_gateway
16{
17
19inline
20constexpr unsigned versionMajor()
21{
23}
24
26inline
27constexpr unsigned versionMinor()
28{
30}
31
33inline
34constexpr unsigned versionPatch()
35{
37}
38
40inline
41constexpr unsigned versionCreate(unsigned major, unsigned minor, unsigned patch)
42{
43 return CC_MQTTSN_GW_MAKE_VERSION(major, minor, patch);
44}
45
47inline
48constexpr unsigned version()
49{
51}
52
53} // namespace cc_mqttsn_gateway
Main namespace for all classes / functions of the gateway library.
constexpr unsigned versionMinor()
Minor verion of the library.
Definition versionpp.h:27
constexpr unsigned versionMajor()
Major verion of the library.
Definition versionpp.h:20
constexpr unsigned version()
Version of the library as single numeric value.
Definition versionpp.h:48
constexpr unsigned versionPatch()
Patch level of the library.
Definition versionpp.h:34
constexpr unsigned versionCreate(unsigned major, unsigned minor, unsigned patch)
Create version of the library as single unsigned numeric value.
Definition versionpp.h:41
Contains version information of the library.
#define CC_MQTTSN_GW_MAKE_VERSION(major_, minor_, patch_)
Macro to create numeric version as single unsigned number.
Definition version.h:23
#define CC_MQTTSN_GW_VERSION
Version of the library as single numeric value.
Definition version.h:29
#define CC_MQTTSN_GW_MAJOR_VERSION
Major verion of the library.
Definition version.h:14
#define CC_MQTTSN_GW_MINOR_VERSION
Minor verion of the library.
Definition version.h:17
#define CC_MQTTSN_GW_PATCH_VERSION
Patch level of the library.
Definition version.h:20