Class PortCompositeDeviceManager
- Namespace
- nanoFramework.Tools.Debugger.PortComposite
- Assembly
- nanoFramework.Tools.DebugLibrary.Net.dll
public class PortCompositeDeviceManager : PortBase
- Inheritance
-
PortCompositeDeviceManager
- Inherited Members
- Extension Methods
Constructors
PortCompositeDeviceManager(IEnumerable<PortBase>, bool)
public PortCompositeDeviceManager(IEnumerable<PortBase> ports, bool startDeviceWatchers = true)
Parameters
ports
IEnumerable<PortBase>startDeviceWatchers
bool
Methods
AddDevice(string)
Adds a new device to list of NanoFrameworkDevices.
public override NanoDeviceBase AddDevice(string deviceId)
Parameters
deviceId
stringThe unique ID (based on the connection properties) of the device.
Returns
- NanoDeviceBase
The device with the unique ID that is added or (if it was already discovered before) retrieved from the list of devices. Returns null if no device has been added.
Exceptions
- NotImplementedException
This API is not available in PortCompositeDeviceManager.
DisposeDevice(string)
Disposes a device.
public override void DisposeDevice(string instanceId)
Parameters
instanceId
stringId of the device to dispose.
ReScanDevices()
Performs a re-scan of the connected devices. This operation resets the list of available devices and attempts to validate if a connected device it's a nanoDevice.
public override void ReScanDevices()
StartDeviceWatchers()
Starts the device watchers. If they are already started this operation won't have any effect.
public override void StartDeviceWatchers()
StopDeviceWatchers()
Stops the device watchers. If they are already stopped this operation won't have any effect.
public override void StopDeviceWatchers()
Events
DeviceEnumerationCompleted
Event that is raised when enumeration of all nF devices is complete.
public override event EventHandler DeviceEnumerationCompleted
Event Type
LogMessageAvailable
Event that is raised when a log message is available.
public override event EventHandler<StringEventArgs> LogMessageAvailable