Seperate MQTT5 from MQTT 3.1.1

This commit is contained in:
yuanjm
2022-05-20 11:55:28 +08:00
committed by David Čermák
parent 3d275f42b9
commit fdf2aeb36f
8 changed files with 1242 additions and 1170 deletions

View File

@@ -679,7 +679,7 @@ esp_err_t mqtt5_msg_parse_connack_property(uint8_t *buffer, size_t buffer_len, m
continue;
case MQTT5_PROPERTY_SERVER_KEEP_ALIVE:
MQTT5_CONVERT_ONE_BYTE_TO_TWO(connection_info->keepalive, property[property_offset ++], property[property_offset ++])
ESP_LOGD(TAG, "MQTT5_PROPERTY_SERVER_KEEP_ALIVE %d", connection_info->keepalive);
ESP_LOGD(TAG, "MQTT5_PROPERTY_SERVER_KEEP_ALIVE %lld", connection_info->keepalive);
continue;
case MQTT5_PROPERTY_RESP_INFO:
if (resp_property->response_info) {