OpenMQTTGateway icon indicating copy to clipboard operation
OpenMQTTGateway copied to clipboard

Hostname for the ESP isn't set to the gateway name, but left to the device default

Open melyux opened this issue 11 months ago • 8 comments

Describe the bug I would expect the hostname of the OMG device to be set to the Gateway Name we specify. However, it's the default ESP hostname instead (my Gateway Name is "omg-xxxx", but its hostname shows up as "ESP-103F51").

To Reproduce Steps to reproduce the behavior:

  1. Set the Gateway Name of the OMG device.
  2. Check the hostname of the device on the router.
  3. See that it's not the Gateway Name but the ESP's original hostname.

Expected behavior I would expect the Gateway Name to be used as the hostname. I can still ping "omg-xxxx.local" with mDNS, but the hostname registered to the router is "ESP-103F51".

Environment (please complete the following information):

  • OpenMQTTGateway version used: latest
  • Library version related to the problem you have: N/A

melyux avatar Jan 12 '25 11:01 melyux

Yes, this problem exists. I solved this problem by modifying the main.ino source code

q127981 avatar Feb 17 '25 12:02 q127981

What did you modify?

melyux avatar Feb 17 '25 18:02 melyux

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar May 19 '25 00:05 github-actions[bot]

No

melyux avatar May 19 '25 08:05 melyux

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Aug 18 '25 00:08 github-actions[bot]

@q127981 What'd you modify?

melyux avatar Aug 18 '25 02:08 melyux

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Nov 17 '25 00:11 github-actions[bot]

@q127981 What did you modify?

melyux avatar Nov 17 '25 00:11 melyux