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

Define SSID at runtime #477

Open
crashtestoz opened this issue Jan 4, 2018 · 1 comment
Open

Define SSID at runtime #477

crashtestoz opened this issue Jan 4, 2018 · 1 comment
Labels
Question User Question member to member support

Comments

@crashtestoz
Copy link

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);

@ldab
Copy link

ldab commented Jan 4, 2018

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

@tablatronix tablatronix added the Question User Question member to member support label Jan 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question User Question member to member support
Projects
None yet
Development

No branches or pull requests

3 participants