Python Forum
Basic TCP to Pioneer VSX-1021 Stereo Receiver
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic TCP to Pioneer VSX-1021 Stereo Receiver
#4
(Oct-22-2017, 12:05 PM)Bpet Wrote: VSXCommand = raw_input("PO")

The 'raw_input' is a dead give away that the code was written in Python 2.x. As a new programmer, you should be using the latest version, which is currently 3.6.3. In the code you supplied, you'd only need to change  VSXCommand = raw_input("PO") to  VSXCommand = input("PO") .

By the way, here is the link to the docs: telnetlib (for version 3)
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Messages In This Thread
RE: Basic TCP to Pioneer VSX-1021 Stereo Receiver - by sparkz_alot - Oct-22-2017, 02:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Frames above 2000 bytes not acknowledged by client/receiver lukasz139 0 2,227 Aug-24-2018, 06:34 PM
Last Post: lukasz139

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020