types.h 236 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 #ifndef TYPES_H #define TYPES_H enum class PacketType { Reserved = 0, CONNECT = 1, CONNACK = 2, Reserved2 = 15 }; enum class ProtocolVersion { None = 0, Mqtt31 = 0x03, Mqtt311 = 0x04 }; #endif // TYPES_H