ESP8266 Developer Zone The Official ESP8266 Forum 2014-12-29T13:58:18+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=84 2014-12-29T13:58:18+08:00 2014-12-29T13:58:18+08:00 https://bbs.espressif.com:443/viewtopic.php?t=84&p=385#p385 <![CDATA[Re: wifi_station_ap_change() behavior when memory is blank]]> Statistics: Posted by ESP_Faye — Mon Dec 29, 2014 1:58 pm


]]>
2014-12-27T09:39:32+08:00 2014-12-27T09:39:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=84&p=370#p370 <![CDATA[Re: wifi_station_ap_change() behavior when memory is blank]]>
For example, running this code

if(wifi_station_ap_change(2))
uart0_sendStr("change ap succeeded!\r\n");
else
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?

Statistics: Posted by jmg5150 — Sat Dec 27, 2014 9:39 am


]]>
2014-12-26T05:03:47+08:00 2014-12-26T05:03:47+08:00 https://bbs.espressif.com:443/viewtopic.php?t=84&p=357#p357 <![CDATA[Re: wifi_station_ap_change() behavior when memory is blank]]> Statistics: Posted by jmg5150 — Fri Dec 26, 2014 5:03 am


]]>
2014-12-25T14:11:54+08:00 2014-12-25T14:11:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=84&p=347#p347 <![CDATA[Re: wifi_station_ap_change() behavior when memory is blank]]> 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. ;)

Statistics: Posted by ESP_Faye — Thu Dec 25, 2014 2:11 pm


]]>
2014-12-19T19:47:35+08:00 2014-12-19T19:47:35+08:00 https://bbs.espressif.com:443/viewtopic.php?t=84&p=299#p299 <![CDATA[Re: wifi_station_ap_change() behavior when memory is blank]]> I've post this information to R&D.

Statistics: Posted by jackon — Fri Dec 19, 2014 7:47 pm


]]>
2014-12-18T12:02:55+08:00 2014-12-18T12:02:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=84&p=288#p288 <![CDATA[wifi_station_ap_change() behavior when memory is blank]]>
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.

Statistics: Posted by jmg5150 — Thu Dec 18, 2014 12:02 pm


]]>