Added array to retrieve package-type names from enum
This commit is contained in:
parent
a0ae919614
commit
1ed9c84802
@ -15,6 +15,18 @@ enum PacketType {
|
||||
NoData,
|
||||
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 {
|
||||
uint64_t timestampMicros;
|
||||
|
Loading…
x
Reference in New Issue
Block a user