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

Could you help me with MQTT/WIll Topics/TLS? #5

Closed
KrYpToDeN opened this issue Jun 4, 2020 · 1 comment
Closed

Could you help me with MQTT/WIll Topics/TLS? #5

KrYpToDeN opened this issue Jun 4, 2020 · 1 comment

Comments

@KrYpToDeN
Copy link

KrYpToDeN commented Jun 4, 2020

Hello.

Could you tell, please, how did you solve this problem with MQTT Will Topic and TLS.

This is your comment:
marvinroger/async-mqtt-client#107 (comment)

Our problem is almost the same. Our post - eclipse/mosquitto#1715

Will topic works sometimes, not always.

Thank you.

@jeroenst
Copy link
Owner

jeroenst commented Jun 5, 2020

It's a long time ago when I fixed this bug. I'm still using several esp8266 devices with ssl and will enabled. For what I remember I saw incomplete messages in the log of mosquitto. After some digging I found out that this was caused by the client.add function which created multiple network packets. When using the will topic some packets where not received anymore (except when using just one letter for username, password and will topic) causing incomplete mqtt packets. I also used Wireshark to observe this behavior. Now the mqtt packet is stored in less (or maybe just 1) network packets causing less overhead (due to headers) which makes will useable. But maybe when using long username, password or will topic it still fails, I don't know this.

@jeroenst jeroenst closed this as completed Jul 6, 2020
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