Click or drag to resize

IDeviceC, P Interface

Interface to a Brainboxes Device

Namespace:  Brainboxes.IO
Assembly:  Brainboxes.IO (in Brainboxes.IO.dll) Version: 1.5.0.0 (1.5.0.0)
Syntax
public interface IDevice<C, P> : IDisposable
where C : IConnection
where P : IProtocol

Type Parameters

C

[Missing <typeparam name="C"/> documentation for "T:Brainboxes.IO.IDevice`2"]

P

[Missing <typeparam name="P"/> documentation for "T:Brainboxes.IO.IDevice`2"]

The IDeviceC, P type exposes the following members.

Properties
  NameDescription
Public propertyConnection
The connection to this device
Public propertyIsAvailable
Whether the device is available, e.g. if the device is on the network it may go offline and become unavailable
Public propertyIsConnected
Whether the connection to this device is open
Public propertyProtocol
The protocol used to communicate which this device
Top
Methods
  NameDescription
Public methodConnect
Open Connection to a Brainboxes Device, must be called before SendCommand Throws exception on connection failure
Public methodDisconnect
Disconnect from Brainboxes Device, will be automatically called when class is disposed
Public methodDispose (Inherited from IDisposable.)
Top
Events
  NameDescription
Public eventDeviceStatusChangedEvent
Event called when the status of the device changes, either the IsConnected Property or the IsAvailable property
Top
See Also