diff --git a/RELEASE.md b/RELEASE.md index 732ea09..e65c780 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -14,6 +14,10 @@ See the [README.md](./README.md) for a complete description of the MQTT client l ## Changelog +### v4.6.1 + +- Minor bug fixes + ### v4.6.0 - Added support for CY8CEVAL-062S2-CYW955513SDM2WLIPA kit diff --git a/source/cy_mqtt_api.c b/source/cy_mqtt_api.c index 1c458f7..57baabd 100644 --- a/source/cy_mqtt_api.c +++ b/source/cy_mqtt_api.c @@ -3542,7 +3542,6 @@ cy_rslt_t cy_mqtt_stop_keepalive( cy_mqtt_t mqtt_handle ) cy_rslt_t cy_mqtt_start_keepalive( cy_mqtt_t mqtt_handle ) { - cy_rslt_t result = CY_RSLT_SUCCESS; cy_mqtt_object_t *mqtt_obj; if( mqtt_handle == NULL ) @@ -3559,34 +3558,7 @@ cy_rslt_t cy_mqtt_start_keepalive( cy_mqtt_t mqtt_handle ) return CY_RSLT_MODULE_MQTT_INVALID_HANDLE; } - cy_mqtt_log_msg( CYLF_MIDDLEWARE, CY_LOG_DEBUG, "\ncy_mqtt_stop_keepalive - Acquiring Mutex %p ", mqtt_obj->process_mutex ); - result = cy_rtos_get_mutex( &(mqtt_obj->process_mutex), CY_RTOS_NEVER_TIMEOUT ); - if( result != CY_RSLT_SUCCESS ) - { - cy_mqtt_log_msg( CYLF_MIDDLEWARE, CY_LOG_ERR, "\ncy_rtos_get_mutex for Mutex %p failed with Error : [0x%X] ", mqtt_obj->process_mutex, (unsigned int)result ); - return result; - } - - /* Stop the MQTT Ping timer if still running and deinit timer */ - result = start_timer( mqtt_obj ); - if( result != CY_RSLT_SUCCESS ) - { - cy_mqtt_log_msg( CYLF_MIDDLEWARE, CY_LOG_DEBUG, "\nstop_timer failed" ); - } - - result = stop_mqtt_ping_resp_timer( mqtt_obj ); - if( result != CY_RSLT_SUCCESS ) - { - cy_mqtt_log_msg( CYLF_MIDDLEWARE, CY_LOG_ERR, "\nstop mqtt ping resp timer failed\n" ); - } - - result = cy_rtos_set_mutex( &(mqtt_obj->process_mutex) ); - if( result != CY_RSLT_SUCCESS ) - { - cy_mqtt_log_msg( CYLF_MIDDLEWARE, CY_LOG_ERR, "\ncy_rtos_set_mutex for Mutex %p failed with Error : [0x%X] \n", (unsigned int)result ); - return result; - } - cy_mqtt_log_msg( CYLF_MIDDLEWARE, CY_LOG_DEBUG, "\nncy_mqtt_stop_keepalive - Released Mutex %p ", mqtt_obj->process_mutex ); + mqtt_ping_request_callback(mqtt_obj); return CY_RSLT_SUCCESS; } diff --git a/version.xml b/version.xml index f86e566..d126e57 100644 --- a/version.xml +++ b/version.xml @@ -1 +1 @@ -4.6.0.1640 +4.6.1.1656