Files
Simple-Protocol-Lib/include/examples/PacketExample.h
Persson-dev 10b49b34dd
All checks were successful
Linux arm64 / Build (push) Successful in 1m17s
working dispatcher + factory
2025-06-25 19:33:11 +02:00

18 lines
473 B
C++

#pragma once
enum PacketIds {
KeepAlive = 0,
Disconnect,
UpgradeTower,
};
#include <examples/DisconnectPacket.h>
#include <examples/KeepAlivePacket.h>
#include <examples/UpgradeTowerPacket.h>
// they must be in the same order as in the enum !
using AllPackets = std::tuple<KeepAlivePacket, DisconnectPacket, UpgradeTowerPacket>;
#include <sp/default/DefaultPacketDispatcher.h>
#include <sp/default/DefaultPacketFactory.h>
#include <sp/default/DefaultPacketHandler.h>