The code will Enable OTA update to ESP8266 with Telnet. The code will print the same data to Serial and Telnet Console.
Simply telnet to IP of Your ESP and check data status. Use data_print and data_println to print data.
Telnet Library used: https://github.com/jandrassy/TelnetStream