CBielstein / APRSsharp

APRS# - Modern APRS software for the amateur radio community
MIT License
12 stars 5 forks source link

Add CLI flag for raw packet output #135

Open CBielstein opened 2 years ago

CBielstein commented 2 years ago

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