Browse Source

Odd Issues

nfactor-troky
setkeh 12 years ago
parent
commit
8dde833b6f
  1. 1
      api-example.py

1
api-example.py

@ -30,6 +30,7 @@ else:
api_ip = sys.argv[2] api_ip = sys.argv[2]
api_port = sys.argv[3] api_port = sys.argv[3]
print api_ip, api_port
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect((api_ip,int(api_port))) s.connect((api_ip,int(api_port)))
s.send(json.dumps({"command":api_command[0],"parameter":api_command[1]})) s.send(json.dumps({"command":api_command[0],"parameter":api_command[1]}))

Loading…
Cancel
Save