I'm working on a project that involves sending information from an ESP8266 by TCP/IP over telnet to python, and to be honest its my first time using telnetlib. I wrote this small code for testing, but when I execute it, it returns "'in ' requires string as left operand, not bytes". Can someone help me out please?
import telnetlib
HOST="192.168.0.67"
tn = telnetlib.Telnet(HOST, "23")
tn.write("Hello World\n")
print (tn.read_all())