[GH-ISSUE #477] Define SSID at runtime #401

Open
opened 2026-02-28 01:25:08 +03:00 by kerem · 1 comment
Owner

Originally created by @crashtestoz on GitHub (Jan 4, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/477

Is it possible to define the SSID of the AP Server at runtime?

I tried creating a global const String variable and assigning e.g. String myssid = "MYAP" + String(ESP.getChipId());

but when I use "myssid in: wifiManager.autoConnect(myssid) I get an error.
boolean autoConnect(char const *apName, char const *apPassword = NULL);

Originally created by @crashtestoz on GitHub (Jan 4, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/477 Is it possible to define the SSID of the AP Server at runtime? I tried creating a global const String variable and assigning e.g. String myssid = "MYAP" + String(ESP.getChipId()); but when I use "myssid in: wifiManager.autoConnect(myssid) I get an error. boolean autoConnect(char const *apName, char const *apPassword = NULL);
Author
Owner

@ldab commented on GitHub (Jan 4, 2018):

Sounds like the problem is with the String addition, you need to concatenate or strcat.

<!-- gh-comment-id:355247833 --> @ldab commented on GitHub (Jan 4, 2018): Sounds like the problem is with the String addition, you need to concatenate or strcat.
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#401
No description provided.