(apologize if I am repeating a question from another thread)
I am looking to read from and send to a TCP port (192.168.1.103:9090) from within a plug in python script. I already have a serial port open (serial over IP on 192.168.1.70:4999). I know I can telnet commands to and from the 9090 port while the 4999 port is open. Not sure the best way from within my plugin however. I have looked at the Cynical Network Sent Text function but do not know how to reference from within my separate plugin, only as action group command from Indigo Interface (and I cannot dynamically change the text to send out). There must be a simple way to send a line of text to a TCP port and receive a response, no? Very similar to the serial port I/O, except not serial.