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.
wifi headache issue with const char * (SOLVED)
-
- Posts: 23
- Joined: Wed Dec 09, 2015 8:11 pm
wifi headache issue with const char * (SOLVED)
Last edited by mikronauts on Sun Nov 24, 2019 1:53 am, edited 1 time in total.
-
- Posts: 23
- Joined: Wed Dec 09, 2015 8:11 pm
Re: wifi headache issue with const char *
nvs would be an ideal solution if it would only return a const char * to the value.
-
- Posts: 23
- Joined: Wed Dec 09, 2015 8:11 pm
Re: wifi headache issue with const char * (SOLVED)
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