-
Notifications
You must be signed in to change notification settings - Fork 164
Closed
Labels
Description
We have a use case where we want to reuse the MqttClient object between connects to avoid destroying semaphores that may be accessed by other FreeRTOS tasks. However, it seems like the client keeps internal states that would be cleared by memset during MqttClient_Init.
Q: Is the library supposed to support client reuse or are you supposed to initialize a new one on connect?
Q: Would you be interested in a MqttClient_Reset PR that handles all the internal clearing?