I'm trying to read all the available access points nearby with an ESP8266 module.
Whenever I try to read all the available data from the ESP module and write it to the Monitor Serial it truncates text. Text often also a bit messed up.
I'm using an Arduino Uno with the following scheme (I'm using pins 2 & 3 NOT 1 & 0):
#include <SoftwareSerial.h>
SoftwareSerial esp8266(2, 3);
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(115200);
esp8266.begin(115200);
}
void loop() {
while(esp8266.available()) {
Serial.write(esp8266.read());
}
while(Serial.available()) {
esp8266.write(Serial.read());
}
}
The code prints something like the following:
AT+CWLAP
+CWLAP:(3,#SBanaan",-73,"4c:09:d4:d5:d6:f2",1,,2,0)
+CWLAP:(3,"UPC24923"CH7"0,L5-:d6Ai0:,
,,f5
44"f"CZ7f1
4-"6:0:4-95
,5-3d0