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

Wifi AP hostname #28

Closed
bobnecat opened this issue Sep 28, 2022 · 4 comments
Closed

Wifi AP hostname #28

bobnecat opened this issue Sep 28, 2022 · 4 comments

Comments

@bobnecat
Copy link

I know this library is pretty old and most likely no longer maintained but I find it to be the most versatile library among all the WiFi connection managers for ESP32.

The issue that I have is that I cannot set the AP name of ESP32 device using the WiFiSettings.hostname function. Maybe I am doing something wrong but would really appreciate if someone could guide me with an example on how to properly add hostname (AP name) definition function in my arduino sketch. Thank you!

@Juerd
Copy link
Owner

Juerd commented Sep 28, 2022 via email

@bobnecat
Copy link
Author

Thanks for the quick reply! I suppose I did it wrong and instead of declaring hostname I tried passing it as a function.

Was doing WiFiSettings.hostname("example-") instead of WiFiSettings.hostname = "example-";

I found your library to be the most reliable out of 3-4 different libraries I've used in the past! Great work and thank you for support!

On a side note, is there a way to time-out the captive portal and cause ESP to restart after some time? I know you have a connect timeout but would be great to have a captive portal timeout as well. The reason for this is that in case if the power goes out it takes for ESP32 to load a lot faster than the router so the library does not see active wifi point that it knows (even with connect timeouts if router takes too long to load) and once it enters the captive portal it just never leaves. Would be great to have it automatically restart the ESP after 5-10 minutes of "inactivity" thus avoiding forever in captive portal state. maybe you already have such a function but I cannot make it out from your guide.

@Juerd
Copy link
Owner

Juerd commented Sep 28, 2022 via email

@bobnecat
Copy link
Author

Perfect! thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants