user38071: I stumbled upon an AT command for the ESP8266 that I really need. The following command is "AT+CWLAP", but I have no idea how to use it. I can't seem to find any resource on how to implement it.
I need the SSID, RSSI, and MAC addresses of the AP and pretty much use those data internally. For example (not necessarily doing this but you get the point), depending on the signal strength, choose the best option and print the SSID of the AP.
Is it even possible? 

user27653: The command is documented in the ESP8266 AT Command Reference, with a non-PDF option at https://room-15.github.io/blog/2015/03/26/esp8266-at-command-reference/#AT+CWLAP
The response from the AT+CWLAP is a series of lines listing available access points, and for each, you are given their encryption method, SSID, RSSI, MAC, and the channel (or frequency offset and a calibration value).
It would be up to the you to parse the resulting strings to obtain the APs, sort by signal strength, and decide what to do with that information.
EDIT:
Because you are using the Arduino environment/core to write code for the ESP8266, you won't be able to use the AT command set. The AT Commands are available when the ESP8266 has the EspressIF firmware loaded to it, and thus the ESP8266 module is intended to be a peripheral device to some other controller; contrast with your use, where the ESP8266 is the only controller, with the WiFi ability baked in.
In this case, you will need to examine the features of the Arduino ESP8266 core, especially the ESP8266WiFi library, which gives an example sketch for scanning the available WiFi networks.

38071: <p>I stumbled upon an AT command for the ESP8266 that I really need. The following command is "AT+CWLAP", but I have no idea how to use it. I can't seem to find any resource on how to implement it.</p>

<p>I need the SSID, RSSI, and MAC addresses of the AP and pretty much use those data internally. For example (not necessarily doing this but you get the point), depending on the signal strength, choose the best option and print the SSID of the AP.</p>

<p>Is it even possible? </p>
 27653: <p>The command is documented in the <a href="https://www.espressif.com/sites/default/files/documentation/4a-esp8266_at_instruction_set_en.pdf" rel="nofollow noreferrer">ESP8266 AT Command Reference</a>, with a non-PDF option at <a href="https://room-15.github.io/blog/2015/03/26/esp8266-at-command-reference/#AT+CWLAP" rel="nofollow noreferrer">https://room-15.github.io/blog/2015/03/26/esp8266-at-command-reference/#AT+CWLAP</a></p>

<p>The response from the <code>AT+CWLAP</code> is a series of lines listing available access points, and for each, you are given their encryption method, SSID, RSSI, MAC, and the channel (or frequency offset and a calibration value).</p>

<p>It would be up to the you to parse the resulting strings to obtain the APs, sort by signal strength, and decide what to do with that information.</p>

<p><strong>EDIT:</strong></p>

<p>Because you are using the Arduino environment/core to write code for the ESP8266, you won't be able to use the AT command set. The AT Commands are available when the ESP8266 has the EspressIF firmware loaded to it, and thus the ESP8266 module is intended to be a peripheral device to some other controller; contrast with your use, where the ESP8266 is the <strong>only</strong> controller, with the WiFi ability baked in.</p>

<p>In this case, you will need to examine the features of the <a href="https://github.com/esp8266/Arduino/tree/master/libraries" rel="nofollow noreferrer">Arduino ESP8266 core</a>, especially the <a href="https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WiFi" rel="nofollow noreferrer">ESP8266WiFi library</a>, which gives an <a href="https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/WiFiScan/WiFiScan.ino" rel="nofollow noreferrer">example sketch for scanning the available WiFi networks</a>.</p>
