|
|
@ -23,7 +23,7 @@ api_param = raw_input("Enter Api Param: ") |
|
|
|
reply_command = raw_input("Enter Json Reply command: ") |
|
|
|
reply_command = raw_input("Enter Json Reply command: ") |
|
|
|
reply_param = raw_input("Enter Json Reply Param: ") |
|
|
|
reply_param = raw_input("Enter Json Reply Param: ") |
|
|
|
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) |
|
|
|
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) |
|
|
|
s.connect(('192.168.1.6',4028)) |
|
|
|
s.connect(('127.0.0.1',4028)) |
|
|
|
s.send(json.dumps({"command":api_command,"parameter":api_param})) |
|
|
|
s.send(json.dumps({"command":api_command,"parameter":api_param})) |
|
|
|
response = linesplit(s) |
|
|
|
response = linesplit(s) |
|
|
|
response = response.replace('\x00','') |
|
|
|
response = response.replace('\x00','') |
|
|
|