AprsSharp.AprsIsClient 0.4.0

dotnet add package AprsSharp.AprsIsClient --version 0.4.0
                    
NuGet\Install-Package AprsSharp.AprsIsClient -Version 0.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AprsSharp.AprsIsClient" Version="0.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AprsSharp.AprsIsClient" Version="0.4.0" />
                    
Directory.Packages.props
<PackageReference Include="AprsSharp.AprsIsClient" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AprsSharp.AprsIsClient --version 0.4.0
                    
#r "nuget: AprsSharp.AprsIsClient, 0.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=AprsSharp.AprsIsClient&version=0.4.0
                    
Install AprsSharp.AprsIsClient as a Cake Addin
#tool nuget:?package=AprsSharp.AprsIsClient&version=0.4.0
                    
Install AprsSharp.AprsIsClient as a Cake Tool

AprsSharp.AprsIsClient

AprsSharp.AprsIsClient is part of the AprsSharp Project. AprsIsClient aims to be a simple library for interacting with the Automatic Packet Reporting System-Internet Service.

APRS-IS uses TCP messages and specific encodings to communicate amateur radio packets. This library abstracts those aspects away.

Currently, only receiving packets is implemented. The only outgoing communication to the server is that required for authorization and configuration. Packets cannot be sent via APRS-IS at this time.

Getting started

This package can be installed via nuget.org: AprsSharp.AprsIsClient on nuget.org.

A simple meethod is via the command line:

dotnet add package AprsSharp.AprsIsClient

Usage

AprsIsClient uses an event driven framework. Major steps are to create a client, define callbacks, and then begin receiving. See the code snippet below for examples.

using AprsSharp.AprsIsClient;

// Create a client
using AprsIsClient aprsIs = new AprsIsClient();

// Print the sender and type of packet received.
aprsIs.ReceivedPacket += packet => {
    Console.WriteLine(packet.Sender);
    Console.WriteLine(packet.InfoField.Type);
};

// Optionally, you can print when the server connection changes state.
aprsIs.ChangedState += state =>
    Console.WriteLine($"State: {state} on server {aprsIs.ConnectedServer}");

// If you'd rather read the TCP messages directly, you can subscribe to those events
aprsIs.ReceivedTcpMessage += message =>
    Console.WriteLine($"New TCP message: {message}");

// And if you'd like to see error messages, you can subscribe to those
aprsIs.DecodeFailed += (ex, message) =>
    Console.WriteLine($"Failed to decode message {message} with exception {ex}");

// Once you've configured your events, begin receiving!
// Assuming `callsign` and `password` are variables, this connects to
// a server on the main rotation and requests all packets of
// type == message (t/m). You can read more about filter commands here:
// https://www.aprs-is.net/javAPRSFilter.aspx
//
// The `await` here is optional and may not be desirable if you're expecting
// additional input. If you're writing a simple script, the await is helpful
// to ensure your application doesn't terminate. The await will not return
// until AprsIsClient is instructed to stop receiving.
await aprsIs.Receive(callsign, password, "rotate.aprs2.net", "t/m");

Additional documentation

For more information, you can visit:

Feedback

Bugs, feedback, and feature requests can be filed via GitHub Issues on the AprsSharp repository.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.4.0 213 5/13/2025
0.3.2 348 3/24/2025
0.3.1 256 8/5/2023
0.3.0 186 7/31/2023
0.2.2 338 12/20/2022
0.2.1 648 5/15/2022
0.2.0 490 4/26/2022
0.1.1 487 4/8/2022
0.1.0 568 2/21/2022