Click or drag to resize

IDeviceC, P Interface

Interface to a Brainboxes Device

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

Type Parameters


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


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

The IDeviceC, P type exposes the following members.

Public propertyConnection The connection to this device
Public propertyIsAvailable Whether the connection to this Brainboxes Device is available, e.g. online or offline​. In case of network TCP connection: this is if the device is pingable on the network. In case of serial connection: this is if the device COM port is listed on the system and not open by another process.
Public propertyIsConnected Whether the Brainboxes Device has an active connection from this connection instance
Public propertyProtocol The protocol used to communicate which this device
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 methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
Public eventDeviceStatusChangedEvent Event called when the status of the device changes, either the IsConnected Property or the IsAvailable property
See Also