[GH-ISSUE #186] unable to set access point name #148

Closed
opened 2026-02-28 01:23:41 +03:00 by kerem · 6 comments
Owner

Originally created by @romuye123 on GitHub (Jun 22, 2016).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/186

Following is my code:

 WiFiManager wifiManager;
 wifiManager.resetSettings();
 wifiManager.autoConnect("My Chip name");

Even if i set access point name it displays "ESP_xxxxxx" in the wifi list.
What is wrong with this ?

Originally created by @romuye123 on GitHub (Jun 22, 2016). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/186 Following is my code: ``` WiFiManager wifiManager; wifiManager.resetSettings(); wifiManager.autoConnect("My Chip name"); ``` Even if i set access point name it displays "ESP_xxxxxx" in the wifi list. What is wrong with this ?
kerem closed this issue 2026-02-28 01:23:41 +03:00
Author
Owner

@romuye123 commented on GitHub (Jun 24, 2016):

@tzapu : waiting for your response

<!-- gh-comment-id:228259911 --> @romuye123 commented on GitHub (Jun 24, 2016): @tzapu : waiting for your response
Author
Owner

@ahmadmn commented on GitHub (Jun 24, 2016):

after
WiFiManager wifiManager;
Append this code:
WiFi.hostname("YourName");

<!-- gh-comment-id:228284181 --> @ahmadmn commented on GitHub (Jun 24, 2016): after WiFiManager wifiManager; Append this code: WiFi.hostname("YourName");
Author
Owner

@romuye123 commented on GitHub (Jun 24, 2016):

@ahmadmn: Thanks for your quickly reply. Tried appending the code, but it still does not work.
Here is my updated code:
WiFiManager wifiManager; WiFi.hostname("mychipname"); wifiManager.resetSettings(); wifiManager.autoConnect("testchipname");

Here is debug output:
0 chksum 0x0f csum 0x0f *WM: settings invalidated *WM: THIS MAY CAUSE AP NOT TO START UP PROPERLY. YOU NEED TO COMMENT IT OUT AFTER ERASING THE DATA. *WM: *WM: AutoConnect *WM: Two *WM: Connecting as wifi client... *WM: Using last saved values, should be faster *WM: Connection result: *WM: 0 *WM: SET AP STA *WM: Three *WM: testchipname *WM: *WM: Configuring access point... *WM: testchipname *WM: AP Name Here *WM: testchipname *WM: AP IP address: *WM: 192.168.4.1 *WM: HTTP server started

Following is the screenshot on my phone:

img_9354

It is still showing ESP_01F72F. I checked the complete library. There is a function which returns the ESP + esp.chipID() but it does not returns underscore ( _ ). This is very strange. Looking forward for your reply.

<!-- gh-comment-id:228327086 --> @romuye123 commented on GitHub (Jun 24, 2016): @ahmadmn: Thanks for your quickly reply. Tried appending the code, but it still does not work. Here is my updated code: `WiFiManager wifiManager; WiFi.hostname("mychipname"); wifiManager.resetSettings(); wifiManager.autoConnect("testchipname");` Here is debug output: `0 chksum 0x0f csum 0x0f *WM: settings invalidated *WM: THIS MAY CAUSE AP NOT TO START UP PROPERLY. YOU NEED TO COMMENT IT OUT AFTER ERASING THE DATA. *WM: *WM: AutoConnect *WM: Two *WM: Connecting as wifi client... *WM: Using last saved values, should be faster *WM: Connection result: *WM: 0 *WM: SET AP STA *WM: Three *WM: testchipname *WM: *WM: Configuring access point... *WM: testchipname *WM: AP Name Here *WM: testchipname *WM: AP IP address: *WM: 192.168.4.1 *WM: HTTP server started` Following is the screenshot on my phone: ![img_9354](https://cloud.githubusercontent.com/assets/1880131/16337020/e93e6030-3a2f-11e6-87eb-48df8340dcba.PNG) It is still showing ESP_01F72F. I checked the complete library. There is a function which returns the ESP + esp.chipID() but it does not returns underscore ( _ ). This is very strange. Looking forward for your reply.
Author
Owner

@tzapu commented on GitHub (Jun 24, 2016):

hi,

that is the default username of the esp chip, somehow it is not getting set by wifimanager at all...

can you updated to the latest everything (esp8266 core, wifimanger) and try again? also make sure you are setting the correct flash size for your esp module

cheers

<!-- gh-comment-id:228340418 --> @tzapu commented on GitHub (Jun 24, 2016): hi, that is the default username of the esp chip, somehow it is not getting set by wifimanager at all... can you updated to the latest everything (esp8266 core, wifimanger) and try again? also make sure you are setting the correct flash size for your esp module cheers
Author
Owner

@ahmadmn commented on GitHub (Jun 24, 2016):

It works for me.
I use Arduino 1.6.9 and following libs:
image

But I don't have this line of code:
wifiManager.resetSettings();

<!-- gh-comment-id:228460882 --> @ahmadmn commented on GitHub (Jun 24, 2016): It works for me. I use Arduino 1.6.9 and following libs: ![image](https://cloud.githubusercontent.com/assets/5241132/16350532/744851ba-3a74-11e6-99e1-97fb78f85d42.png) But I don't have this line of code: wifiManager.resetSettings();
Author
Owner

@romuye123 commented on GitHub (Aug 2, 2016):

Works fine after updating to latest

<!-- gh-comment-id:236945054 --> @romuye123 commented on GitHub (Aug 2, 2016): Works fine after updating to latest
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#148
No description provided.