ExtendedCommandHandler.SendCommandAndWait Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
The reply packet
Exceptions
The timeout elapsed before a reply was received.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for