mqtt5: Fix flow control will regard the DUP packet and not consider PUBCOMP packet

Closes https://github.com/espressif/esp-mqtt/issues/243
This commit is contained in:
yuanjianmin
2022-12-26 15:29:22 +08:00
parent c96f6f804c
commit ed76036744
3 changed files with 31 additions and 14 deletions

View File

@ -36,7 +36,8 @@ typedef struct {
mqtt5_topic_alias_handle_t peer_topic_alias;
} mqtt5_config_storage_t;
void esp_mqtt5_flow_control(esp_mqtt5_client_handle_t client);
void esp_mqtt5_increment_packet_counter(esp_mqtt5_client_handle_t client);
void esp_mqtt5_decrement_packet_counter(esp_mqtt5_client_handle_t client);
void esp_mqtt5_parse_pubcomp(esp_mqtt5_client_handle_t client);
void esp_mqtt5_parse_puback(esp_mqtt5_client_handle_t client);
void esp_mqtt5_parse_unsuback(esp_mqtt5_client_handle_t client);