Comments (16)
Hey I have pushed an update to Google Play regarding reconnect not happening. Do check it out and let me know.
from mqttclpro.
Let me try and setup the hbmqtt broker on my system and test how it goes.
from mqttclpro.
Hey can you share your configuration file for the broker?
from mqttclpro.
I'm using the instance of hbmqtt 0.8 embedded in Home Assistant (https://home-assistant.io/docs/mqtt/broker/).
It generates the following config here: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/mqtt/server.py
{
'listeners': {
'default': {
'max-connections': 50000,
'bind': '0.0.0.0:1883',
'type': 'tcp',
},
'ws-1': {
'bind': '0.0.0.0:8080',
'type': 'ws',
},
},
'auth': {
'allow-anonymous': False,
'password-file': '<temp file containing "homeassistant:passing encrypted password>'
},
'plugins': ['auth_anonymous', 'auth_file'],
}
IIRC one way to enter the state where app reconnects too quickly and gets blacklisted by the broker is to enter an incorrect username/password, though it also happens during normal operation.
from mqttclpro.
I have observed that the issue occurs only while using hbmqtt. Can you confirm if similar issue is observed with mosquito or hivemq?
from mqttclpro.
Hey,
Thanks for a wonderful plugin!
Not sure if I'm seeing the same error described by OP or maybe it's a different one.
I'm using homeassistant, too, with the embedded hbmqtt broker (installed on a pi).
Tasker and mqttclpro are installed on an Android TV box.
When I restart the broker, connection is never restored. When I launch mqttclpro manually, I see it scheduled a retry for later, but this retry also fails. Only when I get into the settings page and then get back to the main menu, it retries to connect and succeeds. Tried setting the retry interval to 1 sec but it doesn't seem like it influences anything.
I'm not sure this is due to homeassistant blacklisting the connection, b/c when I manually do the settings in/out trick - connection is done ok. Would have expected it to fail if it was the broker that refused connection. This is probably some internal bug with mqttclpro?
What do you think? Is that the same issue or a different one? Should I open another ticket?
I can provide log files if needed, for both the client and the server (how do I see logfiles for mqttclpro?).
Just LMK what you need.
Cheers!
Moti
from mqttclpro.
Hey thanx for such a detailed explanation of the issue. I'll try to simulate and fix the issue over the weekend.
I'll let you know if the log files are required.
Cheers!
from mqttclpro.
Hey I have tweaked some settings in the latest version. Do check it out and let me know if the issue is fixed.
Cheers
from mqttclpro.
Hi. Thanks.
Tried it.
Looks like it's still the same - once a connection is not possible ("failed to connect") the scheduled reconnection never occurs. I set retry to 10 seconds but it did not retry so connection was not established until I manually forced it (by going into the settings page, changing a param and going back to the main menu).
from mqttclpro.
Hey. Try increasing the retry interval to 30 seconds. Android doesn't like short intervals like 10 seconds.
from mqttclpro.
from mqttclpro.
from mqttclpro.
Great! Closing this issue.
from mqttclpro.
Thanks for the fix, but I'm still seeing this after the last update:
2017-09-21 12:30:20 WARNING (MainThread) [hbmqtt.broker] Client 1506014967349b140e4445 is reconnecting too quickly, make it wait
2017-09-21 12:30:21 WARNING (MainThread) [hbmqtt.broker] Client 1506014967349b140e4445 is reconnecting too quickly, make it wait
2017-09-21 12:30:22 WARNING (MainThread) [hbmqtt.broker] Client 1506014967349b140e4445 is reconnecting too quickly, make it wait
2017-09-21 12:30:23 WARNING (MainThread) [hbmqtt.broker] Client 1506014967349b140e4445 is reconnecting too quickly, make it wait
Reconnect interval is set to 120 seconds.
from mqttclpro.
Hey I am not sure if this is an issue with MQTT Client or hbmqtt. Could you try some other app and test if you encounter the same issue?
from mqttclpro.
Closing as no activity.
from mqttclpro.
Related Issues (20)
- Cannot Publish or Sub to HiveMQ Broker HOT 1
- Persistence/QoS doesn't seem to be working HOT 2
- Repeated crashes Android Pie HOT 9
- Disconnect option within Tasker? HOT 7
- App hogging battery on OnePlus 5T HOT 7
- Tasker event not firing as expected HOT 3
- No error reporting to tasker HOT 1
- No details or reasons given for connection failed HOT 9
- Subscribe - trigger Tasker HOT 1
- MQTT service closes abruptly
- [Feature Request] Filter retained messages
- Android 9 SSL Bug HOT 3
- [Feature Request] SSL .pem file
- Varmqtttopic assistance with tasker HOT 4
- Disconnection/reconnection issues HOT 1
- Client certificate authentication not working HOT 4
- MQTT Client plugin - no message variable in Automate available HOT 1
- Receiving Image Files
- Have Tasker Subscribe to Topic
- Tasker don't execute anymore. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mqttclpro.