AlpacaDiscoveryStartDiscovery Method

Start an Alpaca device discovery based on the supplied parameters

Definition

Namespace: ASCOM.Alpaca.Discovery
Assembly: ASCOM.Alpaca (in ASCOM.Alpaca.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public void StartDiscovery(
	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
)

Parameters

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

Version Information

.NET Standard

Supported in: 2.0

See Also