aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-16 16:13:07 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-16 16:13:07 +1200
commit4a2bd50b6747eb00ddedd0d3e26f28cc43980b11 (patch)
tree5319d48d540d55213ab23f08ed3937ae15e77d5f /tools
parent6aa4a84c9ef97f5d7980e71cf524a445e87de714 (diff)
downloadtrackermap-server-4a2bd50b6747eb00ddedd0d3e26f28cc43980b11.tar.gz
trackermap-server-4a2bd50b6747eb00ddedd0d3e26f28cc43980b11.tar.bz2
trackermap-server-4a2bd50b6747eb00ddedd0d3e26f28cc43980b11.zip
Extend script to test binary commands
Diffstat (limited to 'tools')
-rwxr-xr-xtools/test-commands.py2
1 files changed, 2 insertions, 0 deletions
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: