IDeviceC, P Interface
public interface IDevice<C, P> : IDisposable where C : IConnection where P : IProtocol
Public Interface IDevice(Of C As IConnection, P As IProtocol) Inherits IDisposable
type IDevice<'C, 'P when 'C : IConnection when 'P : IProtocol> = interface interface IDisposable end
[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.
The connection to this device
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.
Whether the Brainboxes Device has an active connection from this connection instance
The protocol used to communicate which this device
Open Connection to a Brainboxes Device, must be called before SendCommand Throws exception on connection failure
Disconnect from Brainboxes Device, will be automatically called when class is disposed
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.(Inherited from IDisposable.)
Event called when the status of the device changes, either the IsConnected Property or the IsAvailable property