mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1068] hostname example #911
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#911
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sanchosk on GitHub (May 27, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1068
Basic Infos
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
ESP Core Version: 2.4.0, staging
Description
Missing example for setting hostname.
I've found within your issue list a suggestion where you refer to wm.hostname(), but this seem not to work.
I'd like to have an example of portal with wifi ssid, password and hostname.
Is this feasible?
Btw, VERY nice wifi manager - I only found it recently, but I'll use it everywhere from now on.
Settings in IDE
Module: ESP32-Cam
Additional libraries: ESP32 camera
@alfo commented on GitHub (May 28, 2020):
You can do this with WiFi.hostname() on ESP8266 and WiFi.setHostname() on ESP32
@sanchosk commented on GitHub (May 28, 2020):
I know.
What I wanted to achieve was to use the parameters to also set the hostname.
However, my skills are insufficient, so I failed.
And when I use WiFi.setHostname() after wm, the whole sketch locks...
@alfo commented on GitHub (May 28, 2020):
I have this working. You load your parameters from JSON, then set WiFi.hostname(), then instantiate wm
@sanchosk commented on GitHub (May 28, 2020):
Can you, perhaps, share the code?
@alfo commented on GitHub (May 28, 2020):
https://github.com/alfo/IoTBaseFile/