jasoncoon / esp8266-fastled-webserver

GNU General Public License v3.0
713 stars 359 forks source link

Hostname support? #154

Closed CorpusCallosum closed 3 years ago

CorpusCallosum commented 4 years ago

Hi, I believe an earlier version of this project had support for using a hostname, but that's been taken out. Is there a way to get that working again?

I tried setting the hostname using WiFi.hostname("myname");

But, was unable to connect to the device via the hostname (http://myname.local)

Thanks for your help.

jasoncoon commented 4 years ago

Yeah, I commented out a bunch of functionality while trying to track down performance issues, and never bothered re-enabling them. You'll just need to add mDNS: https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266mDNS/examples/mDNS_Web_Server/mDNS_Web_Server.ino

jasoncoon commented 3 years ago

I also realized that hostname wasn't being set in non-ap mode, fixed now: https://github.com/jasoncoon/esp8266-fastled-webserver/blob/main/esp8266-fastled-webserver.ino#L303

Closing this issue, feel free to reopen it if needed.