Class PortTcpIp
- Namespace
- nanoFramework.Tools.Debugger.PortTcpIp
- Assembly
- nanoFramework.Tools.DebugLibrary.Net.dll
public class PortTcpIp : PortMessageBase, IPort
- Inheritance
-
PortTcpIp
- Implements
- Inherited Members
- Extension Methods
Constructors
PortTcpIp(PortTcpIpManager, NanoDevice<NanoNetworkDevice>, NetworkDeviceInformation)
public PortTcpIp(PortTcpIpManager portManager, NanoDevice<NanoNetworkDevice> networkDevice, NetworkDeviceInformation deviceInformation)
Parameters
portManager
PortTcpIpManagernetworkDevice
NanoDevice<NanoNetworkDevice>deviceInformation
NetworkDeviceInformation
Properties
AvailableBytes
public int AvailableBytes { get; }
Property Value
InstanceId
Gets the Instance ID of the port that is unique among all ports (regardless of the type of port).
public string InstanceId { get; }
Property Value
Methods
ConnectDevice()
public ConnectPortResult ConnectDevice()
Returns
DisconnectDevice(bool)
public void DisconnectDevice(bool force = false)
Parameters
force
bool
ReadBuffer(int)
public byte[] ReadBuffer(int bytesToRead)
Parameters
bytesToRead
int
Returns
- byte[]
SendBuffer(byte[])
public int SendBuffer(byte[] buffer)
Parameters
buffer
byte[]
Returns
Events
LogMessageAvailable
Event that is raised when a log message is available.
public override event EventHandler<StringEventArgs> LogMessageAvailable