ExtendedCommandHandler.SendCommandsAndWait Method

Definition

Send a command to the device, expecting a reply.

protected bool SendCommandsAndWait (System.Collections.Generic.IList<Iot.Device.Arduino.FirmataCommandSequence> commandSequences, TimeSpan timeout, out Iot.Device.Arduino.CommandError error);
member this.SendCommandsAndWait : System.Collections.Generic.IList<Iot.Device.Arduino.FirmataCommandSequence> * TimeSpan * CommandError -> bool
Protected Function SendCommandsAndWait (commandSequences As IList(Of FirmataCommandSequence), timeout As TimeSpan, ByRef error As CommandError) As Boolean

Parameters

commandSequences
IList<FirmataCommandSequence>

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

timeout
TimeSpan

Command timeout

error
CommandError

An error code in case of a failure

Returns

True if all packets where send and properly acknowledged

Exceptions

The timeout elapsed before a reply was received.

Applies to