From 4a2bd50b6747eb00ddedd0d3e26f28cc43980b11 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 16 Jul 2016 16:13:07 +1200 Subject: Extend script to test binary commands --- tools/test-commands.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/test-commands.py b/tools/test-commands.py index 6c4896a46..040efb177 100755 --- a/tools/test-commands.py +++ b/tools/test-commands.py @@ -1,9 +1,11 @@ #!/usr/bin/python import socket +import binascii s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(("localhost", 5001)) +#s.send(binascii.unhexlify('68680f0504035889905831401700df1a00000d0a')) s.send("imei:123456789012345,tracker,151030080103,,F,000101.000,A,5443.3834,N,02512.9071,E,0.00,0;") while True: -- cgit v1.2.3