Click or drag to resize

EDDevice Methods

The EDDevice type exposes the following members.

Methods
  NameDescription
Public methodConnect
Connect to a Brainboxes Remote IO Device
(Overrides DeviceConn, ProtoConnect.)
Public methodStatic memberCode exampleCreate
Supply a connection IP address or com port and the correct ED device will be created and returned
Examples
using(EDDevice ed = EDDevice.Create("192.168.0.5")) { //the connection is opened automatically ed.Output[0] = 1; } //connection is closed and object disposed after using block
Public methodDescribe
Give a complete summary of the EDDevice
(Overrides DeviceConn, ProtoDescribe.)
Public methodDisconnect
Disconnect from a Brainboxes Remote IO Device
(Overrides DeviceConn, ProtoDisconnect.)
Public methodDispose
Dispose of this Brainboxes device
(Inherited from DeviceConn, Proto.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFactoryReset
Factory resets the device, this can take some time as the current connection is broken and a new on has to be re-established the connection may not reconnect if the current IP address settings cannot be re-got be the device in default settings mode
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRestart
Power Cycle the device this can take some time as the current connection is broken and a new on has to be re-established the function will block until the device is powered up and reconnected to
Public methodSendCommand
Send a command to the Brainboxes device using the supplied protocol.
Public methodSubscribeToDeltaEvent
Register an event with this handler to be notified when the state of an Analog line changes by larger than the limit specified
Public methodSubscribeToTargetEvent
Register an event with this handlder to be notified when the state of an Analog input goes over the limit specified
Public methodSubscribeToTargetRangeEvent
Register an event with this handler to be notified when the state of an Analog line changes to be within the specified delta range of a specified target value and also when it changes to be outside of the specified delta range
Public methodToString
ToString
(Overrides DeviceConn, ProtoToString.)
Public methodUnsubscribeToDeltaEvent
Unsubscribe a registered delta event with this handler to stop being notified when this event is triggered
Public methodUnsubscribeToTargetEvent
Unsubscribe a registered target event with this handler to stop being notified when this event is triggered
Public methodUnsubscribeToTargetRangeEvent
Unsubscribe a registered target range event with this handler to stop being notified when this event is triggered
Top
See Also