The attached example code decodes AP details by catching beacon from each access point. The ESP8266 works in sniffer mode. Please go through the readme and sniffer.c and sniffer.h file. Also ESP8266 cannot connect to any access point in sniffer mode. You need to disable sniffer mode on esp8266 before connecting to access point.

Documentation

About Us

Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.