AlpacaDiscoveryGetAlpacaDevicesAsync Method
Returns an awaitable Task that provides a list of discovered Alpaca devices
Namespace: ASCOM.Alpaca.DiscoveryAssembly: ASCOM.Alpaca (in ASCOM.Alpaca.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
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
)
Public Shared Function GetAlpacaDevicesAsync (
Optional numberOfPolls As Integer = 1,
Optional pollInterval As Integer = 100,
Optional discoveryPort As Integer = 32227,
Optional discoveryDuration As Double = 1,
Optional resolveDnsName As Boolean = false,
Optional useIpV4 As Boolean = true,
Optional useIpV6 As Boolean = false,
Optional serviceType As ServiceType = ServiceType.Http,
Optional logger As ILogger = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of List(Of AlpacaDevice))
- 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
TaskListAlpacaDeviceReturns an awaitable Task
Supported in: 2.0