Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLI flag for raw packet output #135

Open
CBielstein opened this issue Jun 13, 2022 · 0 comments
Open

Add CLI flag for raw packet output #135

CBielstein opened this issue Jun 13, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@CBielstein
Copy link
Owner

CBielstein commented Jun 13, 2022

Description

Frequently during development, I want to see raw packets of a certain type. To achieve this, I find myself commenting out the code to print out decoded packets (the PrintPacket method) and adding in an explicit console write for any string received by the AprsIsClient.ReceivedTcpMessage event.

This issue should add this capability as a command line switch. Consider -r and --raw. When those are present, the output should be all raw messages from the server and should disable the decoded output.

This should be possible by checking parameters and swapping out the existing event handling registration for a simple handler that writes to console for any events on AprsIsClient.ReceivedTcpMessage.

Acceptance Criteria

  • New flags to command line AprsIs app: -r and --raw to toggle raw output mode and disable the decode
  • Ensure documentation for the new flag shows up in --help output
  • Functionality to disable decode and print and enable raw output when that flag is present
@CBielstein CBielstein added enhancement New feature or request good first issue Good for newcomers labels Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant