AlYurr_CrestronDeviceDiscovery 1.0.0

dotnet add package AlYurr_CrestronDeviceDiscovery --version 1.0.0
                    
NuGet\Install-Package AlYurr_CrestronDeviceDiscovery -Version 1.0.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="AlYurr_CrestronDeviceDiscovery" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AlYurr_CrestronDeviceDiscovery" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="AlYurr_CrestronDeviceDiscovery" />
                    
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 AlYurr_CrestronDeviceDiscovery --version 1.0.0
                    
#r "nuget: AlYurr_CrestronDeviceDiscovery, 1.0.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.
#:package AlYurr_CrestronDeviceDiscovery@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AlYurr_CrestronDeviceDiscovery&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=AlYurr_CrestronDeviceDiscovery&version=1.0.0
                    
Install as a Cake Tool

Crestron Device Discovery

This helper class discovers all Crestron Devices in the network.

Broadcast Discovery

The discovery process is based on the Crestron Discovery Protocol. The library will send a UDP broadcast message to the network and will listen for responses. The responses will be parsed and the devices will be returned.

The library can be called in different ways.

To discover from all available adapters use:

var devices = async CrestronDeviceDiscovery.DiscoverFromAllAdapters();

To direct the discovery to a specific adapter, first gather all adapters on the machine, pick the one(s) needed and invoke the following method(s).

var networkAdaptersList = async CrestronDeviceDiscovery.GetIpV4Adapters();
var devices = async CrestronDeviceDiscovery.DiscoverFromAdapter(networkAdaptersList[0]);

of use

var devices = async CrestronDeviceDiscovery.DiscoverFromAdapters(networkAdaptersSubList);

where networkAdaptersSubList is a list of adapters

Remote Discovery

There library can also discover devices by connecting to a processor in the network, ideal when broadcast discovery is not available because the devices sit in a different network.

You will need the IP address or Hostname of a Crestron Device with AutoDiscovery functionality, normally a processor, it's username and password.

Call the following method to start the discovery process:

var devices = async CrestronDeviceDiscovery.RemoteDiscovery("MyProcessor", "username", "password");

The library will connect to the Processors and wait for 10 seconds to receive the devices. The library will return the devices found.

Notes

To get immediate results, and activity reports you can subscribe to the following events:

  • DeviceDiscovered
  • Activity

The device discovered event will emit a single devices as the library discovers them. The device will have the following properties

  • IpAddress
  • Hostname
  • Description
  • DeviceId

The activity event will emit a string with the discovery status with the following elements:

  • DevicesDiscovered
  • Total Time (seconds)
  • IsDiscovering: [True|False]
  • Elapsed Time (seconds)
  • Error: [Error message if any]

For more information visit the full library API documentation.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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. 
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
1.0.0 265 12/3/2025

Initial Release