Click or drag to resize

Connection Methods

The Connection type exposes the following members.

Methods
 NameDescription
Public methodConnect Connect to the ED Device
Public methodStatic memberCode exampleCreate Supply a connection IP address or com port and the correct IConnection concrete class will be created and returned
Example
IConnection c1 = Connection.Create("192.168.0.5"); // returns a TCPConnection class IConnection c2 = Connection.Create("COM6", 9600); //returns a SerialConnection class with the baud rate set to 9600
Public methodDisconnect Disconnect from the ED Device
Public methodDispose Dispose of this Brainboxes device
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToString ToString
(Overrides ObjectToString)
Top
See Also