From c87a95b1674d85eff3baf527d8d07911a6abdc08 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 22 Nov 2021 13:29:02 +0100 Subject: [PATCH] Changed type to enum-packet-type --- DTO/packet.hpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/DTO/packet.hpp b/DTO/packet.hpp index 5cedb24..ba263fb 100644 --- a/DTO/packet.hpp +++ b/DTO/packet.hpp @@ -3,6 +3,19 @@ #include +enum PacketType { + Beacon, + ProbeRequest, + ProbeResponse, + Data, + RequestToSend, + ClearToSend, + Acknowledgment, + BlockAcknowledgment, + NoData, + Unknown +}; + struct Packet { uint64_t timestampMicros; @@ -16,7 +29,7 @@ struct Packet { unsigned int frequency; unsigned char dataRate; - std::string type; + PacketType type; }; #endif /* C42FA9F6_8CF3_453F_8FA0_918E543DCD59 */