Skip to content

Core MQTT doesn't reconnect to broker after disconnecting #47

@Obaidiaa

Description

@Obaidiaa

I faced a problem with core MQTT it doesn't reconnect after disconnecting I think the problem in this line of code

https://github.com/FreeRTOS/iot-reference-esp32c3/blob/d25036b33828e4c1af96574d8401fae3cc1c0a2a/main/networking/mqtt/core_mqtt_agent_manager.c#L778

It should look like this :

while( xEventGroupWaitBits( xNetworkEventGroup, CORE_MQTT_AGENT_DISCONNECTED_BIT, pdFALSE, pdFALSE, 0 ) == CORE_MQTT_AGENT_DISCONNECTED_BIT )

It starts working well after this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions