logo elektroda
logo elektroda
X
logo elektroda

[ESP8266] Faster connection after wake-up - which libraries?

mienki 837 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17303091
    mienki
    Level 10  
    Hi,

    Has anyone perhaps tried to speed up the connection to the router when the ESP8266 is woken up?
    Are there any "faster" libraries.

    From what I've read, instead of:
    WiFi.begin( ssid, password );
    .
    it is better to use
    WiFi.begin(ssid, password,channel, bssid);
    .

    I did not notice any difference.

    There is a very cool article:
    Link .

    1. at first try to connect to the router via the stored data (bssid, channel etc.); this will not work the first time, because there is nothing in the memory yet,
    2. try the classic connection via ssid and passwd
    3. succeeds
    4. write bssid, channel etc. to memory
    5. On the next boot, read the settings from memory again and this time it should be much faster

    Has anyone done anything like this?
    I want to connect to mqtt as fast as possible after resetting the ESP-01

    Greetings,
    mm
  • ADVERTISEMENT
  • #2 17305337
    krzbor
    Level 27  
    I don't know if it's possible to speed up the wifi connection itself, but I've read that reducing the time is significantly affected by ditching the dynamic IP and introducing a static one. This is because downloading an address from DHCP takes a relatively long time. The ESP-01 is not very suitable for "deep sleep", as it lacks the necessary leads (if it is to be woken up from the internal clock).
  • #3 17306063
    mienki
    Level 10  
    Yes, a permanent ip is the next step.

    Anyone connect via bssid?
ADVERTISEMENT