wifi headache issue with const char * (SOLVED)

mikronauts
Posts: 23
Joined: Wed Dec 09, 2015 8:11 pm

wifi headache issue with const char * (SOLVED)

Postby mikronauts » Sun Nov 24, 2019 12:22 am

problem:

I need to attach to different AP's so the requirement for const char * for ssid and password is making using the Arduino ide impossible.

Later I will move to the IDF but the Arduino IDE is much faster than the IDF.

does anyone have any suggestions?

I have already tried different ways of casting, and also tried

const char *ssid, *sspw;

and pointing them to my char arrays, but it did not work... I suspect due to different handling of const (presumably flash arrays) vs array in ram.
Last edited by mikronauts on Sun Nov 24, 2019 1:53 am, edited 1 time in total.

mikronauts
Posts: 23
Joined: Wed Dec 09, 2015 8:11 pm

Re: wifi headache issue with const char *

Postby mikronauts » Sun Nov 24, 2019 12:53 am

nvs would be an ideal solution if it would only return a const char * to the value.

mikronauts
Posts: 23
Joined: Wed Dec 09, 2015 8:11 pm

Re: wifi headache issue with const char * (SOLVED)

Postby mikronauts » Sun Nov 24, 2019 1:54 am

updating to esp32 1.0.4 in board manager fixed that issue

Who is online

Users browsing this forum: No registered users and 52 guests