Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to configure hostname #179

Closed
servim opened this issue Dec 7, 2017 · 9 comments
Closed

Add ability to configure hostname #179

servim opened this issue Dec 7, 2017 · 9 comments

Comments

@servim
Copy link

servim commented Dec 7, 2017

Hi! How to change the name of the ESP module?
It is not informative on the network to see the name ESP_3C6896.
Perhaps this could be done at the time of the initial setup, but I missed it. If so, how do you get back to the initial setup? Thank you!

@mderoode
Copy link

mderoode commented Dec 7, 2017

I think the name is hardcoded in the source code and corresponds to ESP.getChipId()). Look at https://github.com/sidoh/esp8266_milight_hub/blob/master/src/main.cpp at line 260. You should be able to change it manually and recompile from source.

@sidoh
Copy link
Owner

sidoh commented Dec 7, 2017

@mderoode is essentially right, the hostname isn't currently configurable. main.cpp#260 is actually setting the name for SSDP. I could be wrong, I'm guessing that @servim is talking about the hostname.

Would just need to call WiFi.hostname(String) to set the hostname set along with a DCHP request. Should be pretty straightforward to expose this as a setting.

@servim
Copy link
Author

servim commented Dec 7, 2017

Unfortunately I did not understand everything that you are saying, but the essence is clear to me! you must specify the name yourself and recompile. True, I have never seen platformio, but in Arduino it probably does not compile. Put in the plan, get acquainted with the platformio. Thank you!

@sidoh
Copy link
Owner

sidoh commented Dec 7, 2017

Yes, just call WiFi.hostname("your-host-here"); before wifiManager.begin().

@servim
Copy link
Author

servim commented Dec 7, 2017

sorry, I do not understand how and where it should be written :)

@sidoh
Copy link
Owner

sidoh commented Dec 7, 2017

@servim
Copy link
Author

servim commented Dec 10, 2017

Yes, I understood this :)
Only I can not compile. I do not know platformio. I will sort this out...

@Skinah
Copy link

Skinah commented Feb 3, 2018

I have an Asus router with the merlin firmware loaded and you can set hostnames and lock them to the mac address of devices on the wifi. No need to compile this if you have the ability in your router.

@sidoh sidoh changed the title name of the ESP module Add ability to configure hostname Mar 12, 2018
@rjsachse
Copy link
Contributor

Yes it would be great to have a setting to change the name. At least change ssdp from esp-chip id to MilightHub-chip id

@sidoh sidoh added this to the 1.9.0 milestone Jan 12, 2019
@sidoh sidoh mentioned this issue May 27, 2019
@sidoh sidoh closed this as completed May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants