UDP bug fix and minor interface refactor, fix CLI filter and view command
#41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are 3 changes in this PR.
1. Bug Fix
udp_decoder.py) for the t32 format by correctly extracting theonfield from the packedy+onvalue and initializes theoffestvariable.2. Added UDP Unit Test
3. Refactor UDP packetization interface:
payload_lengthparameter withevents_per_packetin the UDP encoder (udp_encoder.py). It seems to me thatpayload_lengthwas really the number events per packet , so the I renamed the argument and removed the divisibility check likeassert payload_length % 8 == 0.events_per_packetto 100 to be under the MTU for both formats. (Previous default value was above MacOS limit for UDP packet size 9216 bytes)