Table of Contents

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 PortTcpIpManager
networkDevice NanoDevice<NanoNetworkDevice>
deviceInformation NetworkDeviceInformation

Properties

AvailableBytes

public int AvailableBytes { get; }

Property Value

int

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

string

Methods

ConnectDevice()

public ConnectPortResult ConnectDevice()

Returns

ConnectPortResult

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

int

Events

LogMessageAvailable

Event that is raised when a log message is available.

public override event EventHandler<StringEventArgs> LogMessageAvailable

Event Type

EventHandler<StringEventArgs>