Using Arduino Uno RX and TX pins while COmport through USB

If you need both serial for a WiFi adapter, and serial monitor, you need to either:

  • Use SoftwareSerial (with all it's limitations and problems) for the WiFi serial
  • Use an Arduino based on the 32u4, and connect to Serial1 (the "Serial" on the 32u4 is the USB virtual serial port).
  • Use an Arduino with more than one serial port (Ex: Mega2560, third party board based on 1284p, etc)
  • Use software serial and an external serial adapter for the serial monitor, instead of the on-board USB serial adapter.