共用方式為


ExtendedCommandHandler.SendCommandAndWait 方法

定義

多載

SendCommandAndWait(FirmataCommandSequence)

將命令傳送至裝置,預期有回復。 這會使用預設逾時。

SendCommandAndWait(FirmataCommandSequence, TimeSpan)

將命令傳送至裝置,預期有回復。

SendCommandAndWait(FirmataCommandSequence, TimeSpan, CommandError)

將命令傳送至裝置,預期有回復。

SendCommandAndWait(FirmataCommandSequence)

將命令傳送至裝置,預期有回復。 這會使用預設逾時。

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

參數

commandSequence
FirmataCommandSequence

要傳送的命令。 這通常應該是 sysex 命令。

傳回

Byte[]

回復封包

例外狀況

在收到回復之前經過的逾時。

適用於

SendCommandAndWait(FirmataCommandSequence, TimeSpan)

將命令傳送至裝置,預期有回復。

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()

參數

commandSequence
FirmataCommandSequence

要傳送的命令。 這通常應該是 sysex 命令。

timeout
TimeSpan

命令逾時

傳回

Byte[]

回復封包

例外狀況

在收到回復之前經過的逾時。

適用於

SendCommandAndWait(FirmataCommandSequence, TimeSpan, CommandError)

將命令傳送至裝置,預期有回復。

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()

參數

commandSequence
FirmataCommandSequence

要傳送的命令。 這通常應該是 sysex 命令。

timeout
TimeSpan

命令逾時

error
CommandError

發生失敗時的錯誤碼

傳回

Byte[]

回復封包

例外狀況

在收到回復之前經過的逾時。

適用於