Class PortTcpIpManager
- Namespace
- nanoFramework.Tools.Debugger.PortTcpIp
- Assembly
- nanoFramework.Tools.DebugLibrary.Net.dll
public class PortTcpIpManager : PortBase
- Inheritance
-
PortTcpIpManager
- Inherited Members
- Extension Methods
Constructors
PortTcpIpManager(bool, int)
Creates an Network debug client
public PortTcpIpManager(bool startDeviceWatchers = true, int discoveryPort = 23657)
Parameters
Fields
DiscoveryPort
Port listening for announcement messages from nanoDevices in the local network.
public const int DiscoveryPort = 23657
Field Value
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.
DisposeDevice(string)
Disposes a device.
public override void DisposeDevice(string instanceId)
Parameters
instanceId
stringId of the device to dispose.
GetRegisteredDevice(NetworkDeviceInformation)
Get the device that communicates via the network port, provided it has been added to the list of known devices.
public static NanoDeviceBase GetRegisteredDevice(NetworkDeviceInformation networkDevice)
Parameters
networkDevice
NetworkDeviceInformationThe name of the network device.
Returns
OnDeviceEnumerationCompleted()
protected virtual void OnDeviceEnumerationCompleted()
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()
StartNetworkDeviceWatchers()
public void StartNetworkDeviceWatchers()
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 watched 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