Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT SSL connection issue with QoS1 and QoS2 messages #304

Open
haisul opened this issue May 8, 2023 · 1 comment
Open

MQTT SSL connection issue with QoS1 and QoS2 messages #304

haisul opened this issue May 8, 2023 · 1 comment

Comments

@haisul
Copy link

haisul commented May 8, 2023

Hi
I use SSL to connect to a broker.
When I publish a QoS1 or QoS2 message, there is a high probability that the MQTT connection will be disconnected.
When I print the lastError, it shows LWMQTT_NETWORK_FAILED_READ.
However, I have confirmed that my Wi-Fi is connected and functioning properly; only the MQTT connection is disconnected

@hmueller01
Copy link

Are you sure that you do not have a publish / subscribe / unsubscribe in onMessage callback? I had very strange behavior by that (LWMQTT_NETWORK_FAILED_READ = -5 and LWMQTT_MISSING_OR_WRONG_PACKET = -9) ... After eliminating that it works good using TLS / BearSSL and QOS1 and QOS2 messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants