openhab1-addons icon indicating copy to clipboard operation
openhab1-addons copied to clipboard

[MQTT Binding] Request support for retrying initial broker connection

Open enboig opened this issue 5 years ago • 2 comments

Expected Behavior

Using internal mqtt broker, there should not be any connection problem between client and broker.

Current Behavior

What happen is that when system is booting, MQTT Binding tries to connect to the MQTT embedded broker, it hasn't started.

Possible Solution

Maybe starting services before bindings should be enough to solve this problem. But MQTT binding should try again if server is not available.

Context

Maybe the I experience the problem because my board is an old cubieboard (the single core one).

Your Environment

I am using openhab 2.3 on a Armbian (xenial)

enboig avatar Oct 09 '18 20:10 enboig

A clarification.

This is a request to have the MQTT binding support retrying the initial connection to the broker if it fails. Currently, if the initial connection fails, no retries are attempted.

The workaround is to have the broker be ready before starting OH.

9037568 avatar Oct 09 '18 22:10 9037568

The problem with the "workaround" is when using embedded broker. The reasons I cannot use the broker is it don't allow external access in 2.3 (but appear it will change in next release), and not working at all with mqtt binding because at first fail it stops.

enboig avatar Oct 10 '18 19:10 enboig