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 Broker disconnection/ unresponsive #78

Open
Ricky-001 opened this issue Nov 18, 2024 · 0 comments
Open

MQTT Broker disconnection/ unresponsive #78

Ricky-001 opened this issue Nov 18, 2024 · 0 comments

Comments

@Ricky-001
Copy link

During one of my personal projects, I noticed that the MQTT Broker is refusing more than 4 or 5 connections (NOT simultaneous). As a result, the broker remains unresponsive to any new clients or publish transactions after this limit.

So I have this MQTT publish code (PubSubClient) on an ESP32 running in deep-sleep mode - on every trigger, the ESP32 (client) connects to the broker (an ESP8266), publishes a message, and disconnects - going back to sleep. I have another client on my Andriod device, subscribed to this broker, listening for the messages. In this setup, the broker refuses new connections or messages after the publishing client (ESP32) has published 4 messages, and the client fails to connect with status -4.

However, when I reset the ESP8266 either manually or programmatically, it is ready to accept new messages again. Is this expected? I wasn't able to determine, but are the resources not being freed up when clients are disconnecting? Is there anything wrong that I'm doing?

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

1 participant