Skip to content

Disconnected from MQTT. Reason: TCP_DISCONNECTED #305

@lbarcella

Description

@lbarcella

Hi,
i use PlatformIO with:
platform = espressif32
board = esp32dev

My MQTT server is Mosquitto based
With framework-arduinoespressif32 @ 2.17 all work fine.

The arduino framework is now updated to framework-arduinoespressif32 @ 3.0.0
I have update the wifi events.
In a first time all works fine, but next few minutes the connections to MQTT become very instable

If i use Mosquitto 1.6 on Windows i receive a lot of events TCP_DISCONNECTED and next TCP_CONNECTED
** If i use Mosquitto 2.0 on Linux (Debian) some time i receive the same events **

You can test this issue with your example named FullyFeatured-ESP32.ino and a mosquitto server listen on port 1883

To create this issue you need run the same example on two esp32 and you can see that connection fail more time !
Write into loop function to call mosquito subscribe every 500ms

Any idea?
Thank you
L.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions