added raw mode so something else can handle data if neeeded
This commit is contained in:
parent
cd12ab44d7
commit
9b734ac653
@ -48,6 +48,7 @@ parser.add_argument('-i', '--input', action='store', dest='input', help='SDR cap
|
||||
parser.add_argument('-k', '--key', action='store',dest='key', help='AES key override in Base64')
|
||||
parser.add_argument('-n', '--net', action='store',dest='net', help='Network TCP in ip or DNS. ZeroMQ protocol.')
|
||||
parser.add_argument('-p', '--port', action='store',dest='port', help='Network port')
|
||||
parser.add_argument('-r', '--raw', action='store_true',dest='raw', help='Deactivates all handling and passes Gnuradio data raw')
|
||||
parser.add_argument('-d', '--debug', action='store_true',dest='debug', help='Print more debug messages')
|
||||
args = parser.parse_args()
|
||||
|
||||
@ -265,6 +266,9 @@ def networkParse(ipAddr, port, aesKey):
|
||||
while True:
|
||||
if socket.poll(10) != 0:
|
||||
msg = socket.recv()
|
||||
if args.raw:
|
||||
print(msg)
|
||||
else:
|
||||
timeNow = datetime.now()
|
||||
print("Datetime: " + timeNow.strftime("%Y-%m-%d %H:%M:%S"))
|
||||
extractedData = dataExtractor(msg.hex())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user