Changed type to enum-packet-type

OLD_dev
Ruakij 3 years ago
parent ca1b59e4c6
commit c87a95b167

@ -3,6 +3,19 @@
#include <string> #include <string>
enum PacketType {
Beacon,
ProbeRequest,
ProbeResponse,
Data,
RequestToSend,
ClearToSend,
Acknowledgment,
BlockAcknowledgment,
NoData,
Unknown
};
struct Packet { struct Packet {
uint64_t timestampMicros; uint64_t timestampMicros;
@ -16,7 +29,7 @@ struct Packet {
unsigned int frequency; unsigned int frequency;
unsigned char dataRate; unsigned char dataRate;
std::string type; PacketType type;
}; };
#endif /* C42FA9F6_8CF3_453F_8FA0_918E543DCD59 */ #endif /* C42FA9F6_8CF3_453F_8FA0_918E543DCD59 */

Loading…
Cancel
Save