Git Product home page Git Product logo

Comments (16)

dc297 avatar dc297 commented on June 9, 2024 1

Hey I have pushed an update to Google Play regarding reconnect not happening. Do check it out and let me know.

from mqttclpro.

dc297 avatar dc297 commented on June 9, 2024

Let me try and setup the hbmqtt broker on my system and test how it goes.

from mqttclpro.

dc297 avatar dc297 commented on June 9, 2024

Hey can you share your configuration file for the broker?

from mqttclpro.

trisk avatar trisk commented on June 9, 2024

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.

dc297 avatar dc297 commented on June 9, 2024

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.

motir avatar motir commented on June 9, 2024

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.

dc297 avatar dc297 commented on June 9, 2024

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.

dc297 avatar dc297 commented on June 9, 2024

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.

motir avatar motir commented on June 9, 2024

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.

dc297 avatar dc297 commented on June 9, 2024

Hey. Try increasing the retry interval to 30 seconds. Android doesn't like short intervals like 10 seconds.

from mqttclpro.

motir avatar motir commented on June 9, 2024

from mqttclpro.

motir avatar motir commented on June 9, 2024

from mqttclpro.

dc297 avatar dc297 commented on June 9, 2024

Great! Closing this issue.

from mqttclpro.

trisk avatar trisk commented on June 9, 2024

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.

dc297 avatar dc297 commented on June 9, 2024

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.

dc297 avatar dc297 commented on June 9, 2024

Closing as no activity.

from mqttclpro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.