Fixed two small bugs in the analyzeTcpDump utility
This commit is contained in:
@@ -79,7 +79,7 @@ def parse(fileAndPath):
|
||||
value = int(response)
|
||||
|
||||
lastLayer = lastPacket.getlayer(Raw)
|
||||
lastTime = int(lastPacket.time)
|
||||
lastTime = float(lastPacket.time)
|
||||
data = {
|
||||
'command': {
|
||||
'hex': [format(value, '02x') for value in lastLayer.load],
|
||||
@@ -180,10 +180,11 @@ After a successfull parse run, the resulting JSON data looks like this:
|
||||
<Timestamp in Epoch>
|
||||
<Set command type> (e.g. Q0100= to set the position of axis 1)
|
||||
<Event timestamp>
|
||||
<Raw ASCII string>
|
||||
<Actual command (e.g. P0100)
|
||||
<Set value>
|
||||
<Timestamp in Epoch>
|
||||
Command
|
||||
<Raw ASCII string>
|
||||
<Actual command (e.g. P0100)
|
||||
<Set value>
|
||||
<Timestamp in Epoch>
|
||||
<IP Adress MCU2>
|
||||
""")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user