This does not work in the Arduino IDE. You talk as you can. You need to modify it to act as an interface and work with the esp8266 library in the arduinoIDE. one with a toggle switch and save yourself the headache.
MikroTik S+RJ10 Ethernet Transceiver
10 Review
π Gigabit Ethernet Media Converter, Single Mode Dual SC Fiber, 1000Base-LX to 10/100/1000Base-Tx, up to 20km, 2-Pack
9 Review
TRENDnet TC-TP1 Network Signal Testing Probe with Adjustable Volume, Speaker and Compatibility for TC-NT2
8 Review
π‘ Izokee ESP-01 Serial WiFi Transceiver Module with USB Converter, Compatible with Arduino
8 Review
π StarTech.com NETRS2321P: 1-Port RS232 to Ethernet IP Converter, Serial over IP Device Server - Black
5 Review
π Juiced Systems Silver BizHUB USB-C Multiport Gigabit HDMI Hub with 3 USB 3.0 Ports, Gigabit Ethernet, 4K HDMI, SD/Micro SD, and USB-C Power Delivery
11 Review
π StarTech.com NETRS232 Serial to IP Ethernet Device Server - DIN Rail Mountable - Serial Device Server - Serial Over IP Device Server (Black)
4 Review
π uni USB C Hub with Ethernet Adapter, 4K HDMI, Gigabit Ethernet, and 3 USB 3.0 Ports for MacBook Pro, iPad Pro, XPS
11 Review