I am trying to use both Wi-Fi and serial on an ESP8266 and I am finding that if I send more than a few bytes to the serial port it makes the Wi-Fi unreliable. At this point all I am looking for is something along the lines of:
- 'Yes, they don't work well together and there is no fix'
or - 'Yes, they don't work well together but if you try ... then they work fine'
or - 'They should be fine together'.
At the moment I don't have a sketch that illustrates the problem that I'd be happy to post, as I what I have is untidy as I've been playing around adding bits, deleting bits etc. If the answer is 1 or 2 then, hopefully that will be enough. If the answer is 3 then I'll have to come back with a sketch that illustrates the problem.
The ESP8266s I have are these:
ESP8266
I have read the excellent [tutorial](http://"https://tttapa.github.io/ESP8266/Chap01 - ESP8266.html")
by Peiter P, and also seen some of his advice on here.
I am aware of:
serial.swap();
which moves serial TX/RX to pins GPIO15/GPIO13 instead of the USB port.
The symptoms are that if I send, say, 4 bytes to the serial port everything is fine. If I send a few more bytes, maybe 10 or 20, the Wi-Fi becomes erratic and unuseable.
I am also aware of:
yield();
but a liberal sprinkling of yields throughout the code makes no difference.
Answers 1, 2 or 3, along with general advice welcome at this point.
Thank you.