Skip to content

Commit

Permalink
Requiring v3.0 of cc.mqttsn.generated and cc.mqtt311.generated.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Jan 6, 2025
1 parent 5429e8f commit b1b1c3b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/actions_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ on:
- '**'

env:
COMMS_TAG: v5.2.7
CC_MQTTSN_TAG: v2.9
CC_MQTT311_TAG: v2.9
COMMS_TAG: develop
CC_MQTTSN_TAG: develop
CC_MQTT311_TAG: develop

jobs:
build_gcc_ubuntu_22_04:
Expand Down
2 changes: 1 addition & 1 deletion client/lib/src/ProtocolDefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <cstdint>

static_assert(COMMS_MAKE_VERSION(2, 9, 0) <= cc_mqttsn::version(),
static_assert(COMMS_MAKE_VERSION(3, 0, 0) <= cc_mqttsn::version(),
"The version of cc.mqttsn.generated library is too old");

namespace cc_mqttsn_client
Expand Down
13 changes: 8 additions & 5 deletions client/lib/templ/ProtocolOptions.h.templ
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,14 @@ public:
{
struct FrameLayers : public BaseImpl::frame::FrameLayers
{
using Data =
std::tuple<
##MAX_PACKET_SIZE##,
BaseImpl::frame::FrameLayers::Data
>;
struct DataMembers : public BaseImpl::frame::FrameLayers::DataMembers
{
using Field =
std::tuple<
##MAX_PACKET_SIZE##,
BaseImpl::frame::FrameLayers::DataMembers::Field
>;
}; // struct DataMembers

using Id =
std::tuple<
Expand Down
4 changes: 2 additions & 2 deletions gateway/lib/src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@

#include "RegMgr.h"

static_assert(COMMS_MAKE_VERSION(2, 9, 0) <= cc_mqttsn::version(),
static_assert(COMMS_MAKE_VERSION(3, 0, 0) <= cc_mqttsn::version(),
"The version of cc.mqttsn.generated library is too old");

static_assert(COMMS_MAKE_VERSION(2, 9, 0) <= cc_mqtt311::version(),
static_assert(COMMS_MAKE_VERSION(3, 0, 0) <= cc_mqtt311::version(),
"The version of cc.mqtt311.generated library is too old");

namespace cc_mqttsn_gateway
Expand Down

0 comments on commit b1b1c3b

Please sign in to comment.