I am trying to communicate with a device using telnet and python. I tested the communication using putty.
The code does not work and I have no idea why, the code was copied from the telnetlib
example
Here is my code snippet
import telnetlib
HOST = "192.168.42.5"
tn = telnetlib.Telnet("192.168.42.5", 23, 100)
tn.write(b"PR 800\n")
tn.write(b"BG A\n")
I tested the commands using putty the system should do something with python like it did with putty