-->
Page 1 of 1

How many SSID/passwords can ESP8266 store?

PostPosted: Tue May 19, 2015 10:22 pm
by helpme
I would like the ESP8266 module to connect up to multiple Access Points but don't want to send the SSID/password every time. I hope ESP8266 can remember as many SSID/password as possible. May I know how many SSID/passwords can ESP8266 store?

Re: How many SSID/passwords can ESP8266 store?

PostPosted: Thu May 21, 2015 6:08 am
by metalphreak
It is all in the SDK Programming Guide PDF starting on page 34 (SDK v1.0.1).

Max of 5.

wifi_station_ap_number_set
Code: Select allFunction: 

Sets the number of APs that will be cached for ESP8266 station mode. Whenever ESP8266 station connects to an AP, it keeps caches a record of this AP's SSID and password. The cached ID index starts from 0.
   This configuration will be saved in flash system parameter area if changed.
Prototype: 

bool wifi_station_ap_number_set (uint8 ap_number)

Parameters: 

uint8 ap_number: the number of APs can be recorded (MAX: 5)
Return:

true: succeed
 false: fail


wifi_station_get_ap_info

wifi_station_ap_change

wifi_station_get_current_ap_id

Re: How many SSID/passwords can ESP8266 store?

PostPosted: Thu Jun 11, 2015 3:50 am
by helpme
metalphreak wrote:It is all in the SDK Programming Guide PDF starting on page 34 (SDK v1.0.1).

Max of 5.

wifi_station_ap_number_set
Code: Select allFunction: 

Sets the number of APs that will be cached for ESP8266 station mode. Whenever ESP8266 station connects to an AP, it keeps caches a record of this AP's SSID and password. The cached ID index starts from 0.
   This configuration will be saved in flash system parameter area if changed.
Prototype: 

bool wifi_station_ap_number_set (uint8 ap_number)

Parameters: 

uint8 ap_number: the number of APs can be recorded (MAX: 5)
Return:

true: succeed
 false: fail


wifi_station_get_ap_info

wifi_station_ap_change

wifi_station_get_current_ap_id


Thanks. Can the maximum number of APs that can be cached be increased further? Can the code for the SDK be modified to raise the maximum?

Re: How many SSID/passwords can ESP8266 store?

PostPosted: Thu Jun 11, 2015 1:05 pm
by cal
You could always write a program that stores your access data in flash memory and try
those according to some schema. Scan for available APs, lookup data and configure it.

Cal