ExtendedCommandHandler.IsMatchingAck(FirmataCommandSequence, Byte[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
呼叫這個方法,以檢查回復是否為指定命令序列的有效 ACK/NOACK。 可用來避免接受完全 (不相關的命令回復,例如非同步回呼) 。 在不同的字組中,如果指定的回復不是同步命令的答案,則應該會傳回 false。
protected virtual bool IsMatchingAck(Iot.Device.Arduino.FirmataCommandSequence sequence, byte[] reply);
abstract member IsMatchingAck : Iot.Device.Arduino.FirmataCommandSequence * byte[] -> bool
override this.IsMatchingAck : Iot.Device.Arduino.FirmataCommandSequence * byte[] -> bool
Protected Overridable Function IsMatchingAck (sequence As FirmataCommandSequence, reply As Byte()) As Boolean
參數
- sequence
- FirmataCommandSequence
已傳送的序列
- reply
- Byte[]
回復
傳回
如果此回復符合序列,則為 True。 True 是預設值,適用于回溯相容性