The SDK documentation V0.9.3 / 2014.11.20 indicates that the wifi_station_ap_change() function will return a bool indicating success or failure, so I'd expect that it would return false in the case that the wifi configuration memory is empty; however in this case it crashes the chip.
Espressif, please consider hardening this function so that it returns false rather crashing in the case that the memory is blank. Please let me know if you need any help in recreating this issue, I can do it consistently On a related item, it'd be great to have a function such as wifi_station_ap_get_info(unit8 ap_number) which returns the ssid of the ap/network saved in that location.
We‘ve solved your problem here http://bbs.espressif.com/viewtopic.php?f=7&t=104&p=346#p346
Please have a try and feel free to let me know if you have any question.
For example, running this code
uart0_sendStr("change ap succeeded!\r\n");
uart0_sendStr("change ap failed!\r\n");
after writing blank.bin to 0x7E000 results in "change ap succeeded!" status printed over uart. I would expect the result to be false/ "change ap failed!". Can you please verify that this is the desired result?
Who is online
Users browsing this forum: Baidu [Spider], MSN [Bot] and 6 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!