AlpacaDiscoveryGetAlpacaDevicesAsync Method

Returns an awaitable Task that provides a list of discovered Alpaca devices

Definition

Namespace: ASCOM.Alpaca.Discovery
Assembly: ASCOM.Alpaca (in ASCOM.Alpaca.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static Task<List<AlpacaDevice>> GetAlpacaDevicesAsync(
	int numberOfPolls = 1,
	int pollInterval = 100,
	int discoveryPort = 32227,
	double discoveryDuration = 1,
	bool resolveDnsName = false,
	bool useIpV4 = true,
	bool useIpV6 = false,
	ServiceType serviceType = ServiceType.Http,
	ILogger logger = null,
	CancellationToken cancellationToken = default
)

Parameters

numberOfPolls  Int32  (Optional)
Number of polls to send in the range 1 to 5
pollInterval  Int32  (Optional)
Interval (milliseconds) between each poll in the range 10 to 5000 milliseconds.
discoveryPort  Int32  (Optional)
Discovery port on which to send the broadcast (normally 32227) in the range 1025 to 65535.
discoveryDuration  Double  (Optional)
Length of time (seconds) to wait for devices to respond.
resolveDnsName  Boolean  (Optional)
Attempt to resolve host IP addresses to DNS names
useIpV4  Boolean  (Optional)
Search for Alpaca devices that use IPv4 addresses. One or both of useIpV4 and useIpV6 must be True.
useIpV6  Boolean  (Optional)
Search for Alpaca devices that use IPv6 addresses. One or both of useIpV4 and useIpV6 must be True.
serviceType  ServiceType  (Optional)
Http or Https
logger  ILogger  (Optional)
cancellationToken  CancellationToken  (Optional)
Cancellation token to cancel the discovery

Return Value

TaskListAlpacaDevice
Returns an awaitable Task

Version Information

.NET Standard

Supported in: 2.0

See Also