AlpacaDiscovery Class
Enables clients to discover Alpaca devices by sending one or more discovery polls. Returns information on discovered
Alpaca devices and the
ASCOM devices that are available.
Namespace: ASCOM.UtilitiesAssembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 7.1.3+4851.c5da65c2b
public class AlpacaDiscovery : IDisposable
Public Class AlpacaDiscovery
Implements IDisposable
public ref class AlpacaDiscovery : IDisposable
- Inheritance
- Object AlpacaDiscovery
- Implements
- IDisposable
The discovery process is asynchronous and is initiated by the StartDiscovery(Int32, Int32, Int32, Double, Boolean, Boolean, Boolean) method. Clients can then either work synchronously by looping and periodically
polling the DiscoveryComplete property or work asynchronously by handling the AlpacaDevicesUpdated and DiscoveryCompleted events while doing other work.
The StartDiscovery(Int32, Int32, Int32, Double, Boolean, Boolean, Boolean) method is used to set the character of the discovery e.g. the discovery duration and whether to search for IPv4 and/or IPv6 devices.
After the specified discovery duration, the DiscoveryComplete event fires and the DiscoveryCompleted property returns True.
Once discovery is complete, .NET clients can retrieve details of discovered Alpaca devices and associated ASCOM interface devices through the GetAlpacaDevices and GetAscomDevices(String) methods.
COM clients must use the GetAlpacaDevicesAsArrayList and GetAscomDevicesAsArrayList(String) properties because COM does not support the generic classes used
in the GetAlpacaDevices and GetAscomDevices(String) methods.
| Dispose |
Disposes of the discovery component and cleans up resources
|
| GetAlpacaDevices |
Returns a generic List of discovered Alpaca devices.
|
| GetAlpacaDevicesAsArrayList |
Returns an ArrayList of discovered Alpaca devices for use by COM clients
|
| GetAscomDevices |
Returns a generic list of discovered ASCOM devices of the specified device type.
|
| GetAscomDevicesAsArrayList |
Returns an ArrayList of discovered ASCOM devices, of the specified device type, for use by COM clients
|
| StartDiscovery |
Start an Alpaca device discovery based on the supplied parameters
|