struct unsuback_packet { uint8_t packet_type; uint8_t rem_len; //variable header packet identifier uint8_t PI_MSB; uint8_t PI_LSB; }unsuback_pkt; struct ping_request_packet{ uint8_t packet_type; uint8_t rem_len;//rem_len is 0 here //no variable header and payload }*ping_request_pkt; struct ping_response_packet{ uint8_t packet_type; uint8_t rem_len;//rem_len is 0 here //no variable header and payload }*ping_response_pkt; struct disconnect_packet{ uint8_t packet_type; uint8_t rem_len;//rem_len is 0 here //no variable header and payload }*disconnect_pkt; #endif /* SRC_STRUCTS_H_ */