共用方式為


ExtendedCommandHandler.SendCommandsAndWait 方法

定義

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

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

參數

commandSequences
IList<FirmataCommandSequence>

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

timeout
TimeSpan

命令逾時

error
CommandError

發生失敗時的錯誤碼

傳回

True 是表示 如果傳送和正確認可的所有封包

例外狀況

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

適用於