ExtendedCommandHandler.SendCommandAndWait Method

Definition

Overloads

SendCommandAndWait(FirmataCommandSequence)

Send a command to the device, expecting a reply. This uses a default timeout.

SendCommandAndWait(FirmataCommandSequence, TimeSpan)

Send a command to the device, expecting a reply.

SendCommandAndWait(FirmataCommandSequence, TimeSpan, CommandError)

Send a command to the device, expecting a reply.

SendCommandAndWait(FirmataCommandSequence)

Send a command to the device, expecting a reply. This uses a default timeout.

protected byte[] SendCommandAndWait (Iot.Device.Arduino.FirmataCommandSequence commandSequence);
member this.SendCommandAndWait : Iot.Device.Arduino.FirmataCommandSequence -> byte[]
Protected Function SendCommandAndWait (commandSequence As FirmataCommandSequence) As Byte()

Parameters

commandSequence
FirmataCommandSequence

Command to send. This should normally be a sysex command.

Returns

Byte[]

The reply packet

Exceptions

The timeout elapsed before a reply was received.

Applies to

SendCommandAndWait(FirmataCommandSequence, TimeSpan)

Send a command to the device, expecting a reply.

protected byte[] SendCommandAndWait (Iot.Device.Arduino.FirmataCommandSequence commandSequence, TimeSpan timeout);
member this.SendCommandAndWait : Iot.Device.Arduino.FirmataCommandSequence * TimeSpan -> byte[]
Protected Function SendCommandAndWait (commandSequence As FirmataCommandSequence, timeout As TimeSpan) As Byte()

Parameters

commandSequence
FirmataCommandSequence

Command to send. This should normally be a sysex command.

timeout
TimeSpan

Command timeout

Returns

Byte[]

The reply packet

Exceptions

The timeout elapsed before a reply was received.

Applies to

SendCommandAndWait(FirmataCommandSequence, TimeSpan, CommandError)

Send a command to the device, expecting a reply.

protected byte[] SendCommandAndWait (Iot.Device.Arduino.FirmataCommandSequence commandSequence, TimeSpan timeout, out Iot.Device.Arduino.CommandError error);
member this.SendCommandAndWait : Iot.Device.Arduino.FirmataCommandSequence * TimeSpan * CommandError -> byte[]
Protected Function SendCommandAndWait (commandSequence As FirmataCommandSequence, timeout As TimeSpan, ByRef error As CommandError) As Byte()

Parameters

commandSequence
FirmataCommandSequence

Command to send. This should normally be a sysex command.

timeout
TimeSpan

Command timeout

error
CommandError

An error code in case of a failure

Returns

Byte[]

The reply packet

Exceptions

The timeout elapsed before a reply was received.

Applies to