Skip to content

Instantly share code, notes, and snippets.

/picam-client.py Secret

Created November 20, 2017 21:46

Revisions

  1. @invalid-email-address Anonymous created this gist Nov 20, 2017.
    17 changes: 17 additions & 0 deletions picam-client.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    import socket
    import sys


    HOST = '127.0.0.1'
    PORT = 10000
    s = socket.socket()
    s.connect((HOST, PORT))

    print s

    while 1:
    msg = raw_input("Command To Send: ")
    if msg == "close":
    s.close()
    sys.exit(0)
    s.send(msg)