ESP8266 TelnetToSerial

From ElectroDragon Wiki

Definitions

  • STA = station mode
  • Serial1 TXD = IO2 = D4
  • #define SWAP_PINS 0
  • telnet 192.168.8.110 23

Pin Swap

/*
    SWAP_PINS:
   0: use Serial1 for logging (legacy example)
   1: configure Hardware Serial port on RX:GPIO13 TX:GPIO15
      and use SoftwareSerial for logging on
      standard Serial pins RX:GPIO3 and TX:GPIO1
*/

#define SWAP_PINS 0

/*
    SERIAL_LOOPBACK
    0: normal serial operations
    1: RX-TX are internally connected (loopback)
*/

#define SERIAL_LOOPBACK 0

#define BAUD_SERIAL 4800
#define BAUD_LOGGER 115200 // output debugger information 
#define RXBUFFERSIZE 1024

Swap_pins =1

  • Hardware serial: RX:GPIO3 and TX:GPIO1 ( if swap RX:GPIO13 TX:GPIO15)
  • Debug port IO2

Debug Output