Resolved - HiveMQ - What should the settings be?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Zodiac69
Normal user
Posts: 85
Joined: 13 Jun 2016, 17:20

Resolved - HiveMQ - What should the settings be?

#1 Post by Zodiac69 » 16 Jun 2021, 22:37

Hi All

What should the "Controller" settings be to get HiveMQ to work.
I have connected to HiveMQ from Node-RED to confirm the connection, but i am unable to get my ESP to connect:
MQTT : Intentional reconnect
MQTT : Broker C005 connection failed (6/0)

I am using:
ESP_Easy_mega_20201130_normal_ESP8266_4M1M
I have also tried the latest firmware with the same result.

Here is my Controller settings

Protocol: Home Assistant (openHAB) MQTT
Locate Controller: Use Hostname
Controller Hostname: broker.hivemq.com
Controller Port: 1883
Controller Queue
Minimum Send Interval: 100 [ms]
Max Queue Depth: 10
Max Retries: 10
Full Queue Action: Ignore New
Check Reply:
Ignore Acknowledgement
Client Timeout: 100 [ms]
Credentials
Use Extended Credentials: yes
Controller User: xxxyyyzzz
Controller Password: •••••
MQTT
Controller Client ID: %sysname%/%unit%
Unique Client ID on Reconnect:
Current Client ID: Coffee/1
Note: Updated on load of this page
Publish Retain Flag:
Controller Subscribe: %sysname%/#
Controller Publish: %sysname%/%tskname%/%valname%
Controller LWT Topic: %sysname%/%unit%/availability
LWT Connect Message: payload_available
LWT Disconnect Message: payload_not_available
Send LWT to broker: Will Retain:
Clean Session:
Enabled:

Please point me in the right direction.
Last edited by Zodiac69 on 17 Jun 2021, 22:13, edited 1 time in total.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: HiveMQ - What should the settings be?

#2 Post by TD-er » 17 Jun 2021, 00:07

What is your IP configuration?
Or maybe an easier test, does the unit set the time properly if you only check to use NTP, without actually setting a host for NTP server.

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: HiveMQ - What should the settings be?

#3 Post by ThomasB » 17 Jun 2021, 03:22

Check Reply: Ignore Acknowledgement
FWIW, some services need to have controller settings set to "Check Reply: Check Acknowledgement."
This might not pertain to HiveMQ, but worth trying it out.

Note: I don't use HiveMQ so I can't test it out.

- Thomas

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: HiveMQ - What should the settings be?

#4 Post by TD-er » 17 Jun 2021, 08:24

I think it doesn't matter for MQTT, this is mainly an issue with HTTP services.
Also that specific issue is mainly fixed in the tools-Advanced settings to wait for a reply after sending to HTTP.

His logs suggest the ESP can't even connect to the broker.

However since you're connecting to an online service, you may need to set the timeout to 1000 msec.

Zodiac69
Normal user
Posts: 85
Joined: 13 Jun 2016, 17:20

Re: HiveMQ - What should the settings be?

#5 Post by Zodiac69 » 17 Jun 2021, 20:56

Hi TD-er

So out of desperation i loaded - ESP_Easy_mega_20210615_normal_ESP8266_4M1M via https://td-er.nl/ESPEasy/
And it work 1st time...???
Instant connect with no errors.

So what has changed between ESPEasy_ESP82xx_mega-20210503 and ESP_Easy_mega_20210615_normal_ESP8266_4M1M?
That will give clarity on why mqtt to external broker is not working on ESPEasy_ESP82xx_mega-20210503_normal_ESP8266_4M1M.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: HiveMQ - What should the settings be?

#6 Post by TD-er » 17 Jun 2021, 21:04

The May build had some issues with processing WiFi events.
So I did fix these issues.

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests