wifi_station_connect() does a re-scan, why?

Mdb
Posts: 10
Joined: Mon Oct 17, 2016 3:29 pm

wifi_station_connect() does a re-scan, why?

Postby Mdb » Thu Dec 15, 2016 11:41 pm

Hi guys,
i tried to control the scan and connection sequence on my own and i got it,at least in a simple way.
I am with NON OS SDK 2.0.0.
Commands seems to work well, but at the end of my scan after a positive match with a specified AP i noticed that wifi_station_connect() performs a new scan before the module gets connected.
Now, my mandatory goal is to reduce current consumption at startup end therefore to speed up the connection sequence.

I wonder :
- Is it normal that wifi_station_connect() does its personal scan even if mine was successful ?
- Is it possible to avoid this extra scan and pass scan result as connection target ?

Thanks in advance.

ESP_Xutao
Posts: 134
Joined: Tue Sep 27, 2016 5:42 pm

Re: wifi_station_connect() does a re-scan, why?

Postby ESP_Xutao » Thu Dec 22, 2016 1:25 pm

hi:
1. yes,wifi_station_connect() does a re-scan,because don't know which channel,re-scan can confirm which channel ,then connect the router
2.you can user system_phy_set_max_tpw()to set greatest value for RF tx power.you can consult a document.
http://espressif.com/sites/default/file ... faq_cn.pdf

Who is online

Users browsing this forum: No registered users and 60 guests