blob: 6c4896a46b27c8a8c62ebf6c1f6a1ee2ad82fb49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/python
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("localhost", 5001))
s.send("imei:123456789012345,tracker,151030080103,,F,000101.000,A,5443.3834,N,02512.9071,E,0.00,0;")
while True:
print s.recv(1024)
s.close()
|