[GH-ISSUE #300] How change ESP123456 to MyName123456? #252

Closed
opened 2026-02-28 01:24:19 +03:00 by kerem · 4 comments
Owner

Originally created by @glowlabs on GitHub (Jan 25, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/300

Is it possible to change the "ESP" text in the autoConnect AP to a custom value?

Originally created by @glowlabs on GitHub (Jan 25, 2017). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/300 Is it possible to change the "ESP" text in the autoConnect AP to a custom value?
kerem closed this issue 2026-02-28 01:24:20 +03:00
Author
Owner

@skx commented on GitHub (Feb 1, 2017):

See the README file.

If you call the code like so, then it will use the name you've supplied:

    WiFiManager wifiManager;
    wifiManager.autoConnect("TRAM-TIMES" );

In my case that creates a WiFi network called TRAM-TIMES.

<!-- gh-comment-id:276758446 --> @skx commented on GitHub (Feb 1, 2017): See the `README` file. If you call the code like so, then it will use the name you've supplied: WiFiManager wifiManager; wifiManager.autoConnect("TRAM-TIMES" ); In my case that creates a WiFi network called `TRAM-TIMES`.
Author
Owner

@glowlabs commented on GitHub (Feb 7, 2017):

Sorry, I wasn't clear in my post. I would like to have my custom name + chipID.

Something like "MySSID-120548".

Is that possible?

<!-- gh-comment-id:278082709 --> @glowlabs commented on GitHub (Feb 7, 2017): Sorry, I wasn't clear in my post. I would like to have my custom name + chipID. Something like "MySSID-120548". Is that possible?
Author
Owner

@skx commented on GitHub (Feb 7, 2017):

Yes.

The default value comes from this code. You could use something similar like so:

  // Create a custom SSID, with chip ID appended
  String ssid = "MySSID-" + String(ESP.getChipId());

  // Start up the manager, using that string.
  WiFiManager wifiManager;
  wifiManager.autoConnect(ssid.c_str());

If this helps please do close the issue :)

<!-- gh-comment-id:278083531 --> @skx commented on GitHub (Feb 7, 2017): Yes. The default value comes [from this code](https://github.com/tzapu/WiFiManager/blob/master/WiFiManager.cpp#L134). You could use something similar like so: // Create a custom SSID, with chip ID appended String ssid = "MySSID-" + String(ESP.getChipId()); // Start up the manager, using that string. WiFiManager wifiManager; wifiManager.autoConnect(ssid.c_str()); If this helps please do close the issue :)
Author
Owner

@glowlabs commented on GitHub (Feb 7, 2017):

Perfect, thats exactly what I needed. Thanks!

<!-- gh-comment-id:278084074 --> @glowlabs commented on GitHub (Feb 7, 2017): Perfect, thats exactly what I needed. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#252
No description provided.