ESP32 Arduino SSID, PASSWORD not update

senthil313
Posts: 8
Joined: Fri May 11, 2018 5:44 am

ESP32 Arduino SSID, PASSWORD not update

Postby senthil313 » Tue May 29, 2018 12:17 pm

i change the ssid and password through web server , i received and stored flash memory.Its all ok.
then move new ssid to real ssid and password. but it wont accept.

For the access point mode ssid password not update.
In Station mode static IP not update ...

const char* ssid ="esp"
const char*password="12345"

Give any example conversion for char to const pointer for ssid update...

Agree007
Posts: 103
Joined: Mon Sep 18, 2017 7:11 pm
Location: Copenhagen

Re: ESP32 Arduino SSID, PASSWORD not update

Postby Agree007 » Sun Jun 03, 2018 8:41 pm

Try share all your program, then we might be able to help you ;)

senthil313
Posts: 8
Joined: Fri May 11, 2018 5:44 am

Re: ESP32 Arduino SSID, PASSWORD not update

Postby senthil313 » Mon Jun 04, 2018 5:19 am

Reference.rar
(3.25 KiB) Downloaded 627 times
find the attachment.

i have to change the ssid,password through web page...
Then receive ssid & password stored in flash memory...
reset the board then read ssid & password selected memory location...
its all ok...
after assign Wifi.softAP(APssid,APpassword);
It takes password as the APssid...
password as the APpassword...

initally i made a mistake for the length (less than 8) of ssid & password...
Now i change the length for both ssid & password (above 8 characters)...

kindly give solution..its very urgent...
Attachments
Ref_Image1.JPG
Ref_Image1.JPG (22.49 KiB) Viewed 9485 times

dmaxben
Posts: 108
Joined: Thu Nov 16, 2017 6:04 pm

Re: ESP32 Arduino SSID, PASSWORD not update

Postby dmaxben » Mon Jun 04, 2018 9:16 pm

I have encountered this once before...using Arduino, the SSID and password seemed to be "permanently" burned in and would not change by uploading a new sketch.

Try doing a complete force-erase manually using esptool.py.

Then reflash your program using the Arduino IDE. That should clear any existing WiFi settings that might get goofed by an Arduino sketch.

senthil313
Posts: 8
Joined: Fri May 11, 2018 5:44 am

Re: ESP32 Arduino SSID, PASSWORD not update

Postby senthil313 » Thu Jun 07, 2018 10:04 am

thanks for your reply...

the issue is solved using malloc.
To convert char array to function pointer...

e.g. arr = (int *)malloc(5 * sizeof(int));

Who is online

Users browsing this forum: No registered users and 47 guests