MQTT-SN Gateway Library
Library that allows implementation of MQTT-SN gateway.
Loading...
Searching...
No Matches
version.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
16#define CC_MQTTSN_GW_MAJOR_VERSION 2U
17
19#define CC_MQTTSN_GW_MINOR_VERSION 0U
20
22#define CC_MQTTSN_GW_PATCH_VERSION 12U
23
25#define CC_MQTTSN_GW_MAKE_VERSION(major_, minor_, patch_) \
26 ((static_cast<unsigned>(major_) << 24) | \
27 (static_cast<unsigned>(minor_) << 8) | \
28 (static_cast<unsigned>(patch_)))
29
31#define CC_MQTTSN_GW_VERSION CC_MQTTSN_GW_MAKE_VERSION(CC_MQTTSN_GW_MAJOR_VERSION, CC_MQTTSN_GW_MINOR_VERSION, CC_MQTTSN_GW_PATCH_VERSION)