I just got a new ESP-8266-05 and tried it with the same script that worked fine for another ESP8266. I connected antenna. Hooked up to Arduino UNO. The chip responds to AT by OK. AT+CIFSR returns 192.168.4.1 and OK. But AT+CWLAP returns: ERROR. I tried all combinations of CR, Newline from the Serial Monitor: CR+NL returns ERROR. CR alone echoes the command but shows nothing, and cursor sits on the same line behind the last letter P. NL alone echoes command, returns empty line and then ERROR. No line ending - same as CR alone.
Why does it return "ERROR" and no list of APs?