in source/fixed_header.c [65:91]
bool aws_mqtt_packet_has_flags(const struct aws_mqtt_fixed_header *header) {
/* Parse attributes based on packet type */
switch (header->packet_type) {
case AWS_MQTT_PACKET_SUBSCRIBE:
case AWS_MQTT_PACKET_UNSUBSCRIBE:
case AWS_MQTT_PACKET_PUBLISH:
case AWS_MQTT_PACKET_PUBREL:
return true;
break;
case AWS_MQTT_PACKET_CONNECT:
case AWS_MQTT_PACKET_CONNACK:
case AWS_MQTT_PACKET_PUBACK:
case AWS_MQTT_PACKET_PUBREC:
case AWS_MQTT_PACKET_PUBCOMP:
case AWS_MQTT_PACKET_SUBACK:
case AWS_MQTT_PACKET_UNSUBACK:
case AWS_MQTT_PACKET_PINGREQ:
case AWS_MQTT_PACKET_PINGRESP:
case AWS_MQTT_PACKET_DISCONNECT:
return false;
default:
return false;
}
}