Added array to retrieve package-type names from enum

OLD_dev
Ruakij 3 years ago
parent a0ae919614
commit 1ed9c84802

@ -15,6 +15,18 @@ enum PacketType {
NoData, NoData,
Unknown Unknown
}; };
const std::array<const char*, 10> PACKET_TYPE_NAMES({{
"Beacon",
"Probe Request",
"Probe Response",
"Data",
"Request to send",
"Clear to send",
"Acknowledgment",
"BlockAcknowledgment",
"NoData",
"Unknown"
}});
struct Packet { struct Packet {
uint64_t timestampMicros; uint64_t timestampMicros;

Loading…
Cancel
Save