"There is one further consideration associated with connecting to access points and that is the idea of automatic connection. There is a boolean flag that is stored in flash that indicates whether or not the ESP8266 should attempt to automatically connect to the last used access point. If set to true, then after the device is started and without you having to code any API calls, it will attempt to connect to the last used access point.
This is a convenience that I prefer to switch off. Usually, I want control in my device to determine when I connect. We can enable or disable the auto connect feature by making a call to
wifi_station_set_auto_connect() . "
Из Книги Колбана
http://neilkolban.com/tech/esp8266/101-я страница и блок "Connecting to an access point"