Skip to content

time to connect wifi with static ip #261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chaeplin opened this issue May 18, 2015 · 2 comments
Closed

time to connect wifi with static ip #261

chaeplin opened this issue May 18, 2015 · 2 comments

Comments

@chaeplin
Copy link
Contributor

I have tested a simple sketch.

https://gist.github.com/chaeplin/190ba7175d1e8098a629

time to connect wifi with static ip
---> power on : 2.018 sec
---> reset with deepsleep : 1.109 sec

Is there a way to set a channel(skip scanning) ?

@chaeplin chaeplin changed the title how to reduce time to connect wifi with static ip time to connect wifi with static ip May 20, 2015
@chaeplin
Copy link
Contributor Author

extern "C"{
#include "user_interface.h"
}


  WiFi.begin(ssid, password);
  wifi_set_channel(7);

igrr pushed a commit that referenced this issue Oct 29, 2015
 - begin changes
     allow setting BSSID/MAC and Channel of an AP for faster connection (#261)
     now checks if ssid and passphrase to big
     selecting Wifi mode in better way (fix for #28)

 - ESP8266WiFiMulti uses the new functions to auto select best AP even in a multi AP WiFi network (more the one AP has same SSID)

 - add new functions to get current Connected AP:
     uint8_t * BSSID(void);
     int32_t Channel(void);

 - add new functions to get infos from scanned networks:
     uint8_t * BSSID(uint8_t networkItem);
     int32_t Channel(uint8_t networkItem);
     bool isHidden(uint8_t networkItem);
     bool getNetworkInfo(uint8_t networkItem, const char** ssid, uint8_t * encryptionType, int32_t * RSSI, uint8_t ** BSSID, int32_t * channel, bool * isHidden);
@Tareq-Sulaiman
Copy link

Tareq-Sulaiman commented Mar 26, 2018

The best I could achieve is 1.45 seconds when powered on.
With reset 185 mS.
You need to add the channel and the bssid(MAC address of the AP), and of course a static IP address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants