Skip to content

I need a non-blocking version of esp_mqtt_client_stop() (IDFGH-16502) #314

@0xFEEDC0DE64

Description

@0xFEEDC0DE64

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • Described the feature in detail and justified the reason for the request.
  • Provided specific use cases and examples.

Feature description

Hi, my main loop is getting stuck for over 3sec and therefore causing the task watchdog to trigger and coredump/restart.
I need a similar mqtt api like esp_websocket_client_initiate_stop() and esp_websocket_client_is_already_stopped()
Those APIs are non-blocking and allow you to poll if the websocket client is already stopped.
How much effort would it be to provide a esp_mqtt_client_initiate_stop() and esp_mqtt_client_is_already_stopped()

Use cases

Single threaded application to save on task stack space because we are running out of memory everywhere

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions