ExtendedCommandHandler.SendCommandsAndWait 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將命令傳送至裝置,預期有回復。
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 是表示 如果傳送和正確認可的所有封包
例外狀況
在收到回復之前經過的逾時。