WiFi.setCredentials problem using String

OK i’ve found the right way so:

String ssds = "iPhone6";
int l = ssds.length();
char mySSID1[l+1];
strcpy(mySSID1, ssds.c_str());

About compiler, i always read its messages but many times this messages are cryptic… :smiley:
Thanks for your patient

Even though you got it working now, I’d warmly recommend you to do what I suggested above, to have a print out of your not working code to figure why it didn’t work and then experiment with different password/SSID lengths.
This will give you a load of insight that will help you in future.

At the end you may even find an easier way than what you found there.

If you post the error messages along with your problem, people can maybe see the problem quicker and even give you some advise of how to understand the meaning of it (but only the errors not the warnings).

2 Likes

which one ? :smiley:

After that you'll find/get it :wink:

2 Likes