Show / Hide Table of Contents

Interface IModbusSlaveNetwork

A network of slave devices on a single transport.

Inherited Members
System.IDisposable.Dispose()
Namespace: NModbus
Assembly: NModbus.dll
Syntax
public interface IModbusSlaveNetwork : IDisposable

Methods

| Improve this Doc View Source

AddSlave(IModbusSlave)

Add a slave to the network.

Declaration
void AddSlave(IModbusSlave slave)
Parameters
Type Name Description
IModbusSlave slave
| Improve this Doc View Source

GetSlave(Byte)

Get a slave from the network.

Declaration
IModbusSlave GetSlave(byte unitId)
Parameters
Type Name Description
System.Byte unitId

The slave address

Returns
Type Description
IModbusSlave

The specified slave, or null if one can't be found.

| Improve this Doc View Source

ListenAsync(CancellationToken)

Listen for incoming requests.

Declaration
Task ListenAsync(CancellationToken cancellationToken = default (CancellationToken))
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

RemoveSlave(Byte)

Removes a slave from the network.

Declaration
void RemoveSlave(byte unitId)
Parameters
Type Name Description
System.Byte unitId
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX