wifi headache issue with const char * (SOLVED)
Posted: 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.
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.