Automatic router selection

scargill
Posts: 70
Joined: Sun Nov 02, 2014 8:09 pm

Automatic router selection

Postby scargill » Tue Nov 03, 2015 4:29 pm

I wonder if anyone who has done this can help. I program my ESP8266 devices in C. I've been having some issues with weak signal recently and it would be really nice to have a list of acceptable access points and their passwords - and have the ESP, if it loses the signal, check the list (including identical SSIDs) and reconnect.

Has anyone done this already and if so would they care to share code?

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Automatic router selection

Postby ESP_Faye » Mon Nov 09, 2015 4:02 pm

Hi,

Download and unzip esp_iot_sdk, in folder "examples", folder "IOT Demo".

The source code marked by "AP_CACHE" shows an example of select an AP recorded by ESP8266.

ESP8266 will record 5 APs' information at most, wifi_station_ap_change can use to AP selection.

Who is online

Users browsing this forum: No registered users and 1 guest