Skip to content

Commit

Permalink
Upload mqtt 4.6.1.1656 [2846]
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlab-runner committed Nov 4, 2024
1 parent 8905660 commit 0891059
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 30 deletions.
4 changes: 4 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
30 changes: 1 addition & 29 deletions source/cy_mqtt_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion version.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<version>4.6.0.1640</version>
<version>4.6.1.1656</version>

0 comments on commit 0891059

Please sign in to comment.