mirror of https://github.com/ARMmbed/mbed-os.git
RESET for each connect operation
parent
fc8ae6fb18
commit
cef6aba55e
|
@ -146,6 +146,9 @@ nsapi_error_t RDAWiFiInterface::connect(const char *ssid, const char *pass,
|
||||||
|
|
||||||
init();
|
init();
|
||||||
|
|
||||||
|
//reset all scan result to avoid any previous stored SSID/PW/CHANNEL
|
||||||
|
rda5981_del_scan_all_result();
|
||||||
|
rda5981_scan(NULL,0,0);
|
||||||
if(rda5981_check_scan_result_name(ssid) != 0) {
|
if(rda5981_check_scan_result_name(ssid) != 0) {
|
||||||
for (i = 0; i< 5; i++) {
|
for (i = 0; i< 5; i++) {
|
||||||
rda5981_scan(NULL, 0, 0);
|
rda5981_scan(NULL, 0, 0);
|
||||||
|
|
Loading…
Reference in New Issue