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 - 2026 (C). Alex Robenko. All rights reserved.
3//
4// SPDX-License-Identifier: MPL-2.0
5//
6// This Source Code Form is subject to the terms of the Mozilla Public
7// License, v. 2.0. If a copy of the MPL was not distributed with this
8// file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
12
13#pragma once
14
15#include "version.h"
16
17namespace cc_mqttsn_gateway
18{
19
21inline
22constexpr unsigned versionMajor()
23{
25}
26
28inline
29constexpr unsigned versionMinor()
30{
32}
33
35inline
36constexpr unsigned versionPatch()
37{
39}
40
42inline
43constexpr unsigned versionCreate(unsigned major, unsigned minor, unsigned patch)
44{
45 return CC_MQTTSN_GW_MAKE_VERSION(major, minor, patch);
46}
47
49inline
50constexpr unsigned version()
51{
53}
54
55} // 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:29
constexpr unsigned versionMajor()
Major verion of the library.
Definition versionpp.h:22
constexpr unsigned version()
Version of the library as single numeric value.
Definition versionpp.h:50
constexpr unsigned versionPatch()
Patch level of the library.
Definition versionpp.h:36
constexpr unsigned versionCreate(unsigned major, unsigned minor, unsigned patch)
Create version of the library as single unsigned numeric value.
Definition versionpp.h:43
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:25
#define CC_MQTTSN_GW_VERSION
Version of the library as single numeric value.
Definition version.h:31
#define CC_MQTTSN_GW_MAJOR_VERSION
Major verion of the library.
Definition version.h:16
#define CC_MQTTSN_GW_MINOR_VERSION
Minor verion of the library.
Definition version.h:19
#define CC_MQTTSN_GW_PATCH_VERSION
Patch level of the library.
Definition version.h:22