Language
Edit

ExtendedCommandHandler.IsMatchingAck(FirmataCommandSequence, Byte[]) Method

Definition

This method is called to check whether the reply is a valid ACK/NOACK for the given command sequence. Can be used to avoid accepting something as command reply that is completely unrelated (such as an asynchronous callback). In different words, this should return false if the given reply is not something that is an answer to a synchronous command.

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

Parameters

sequence
FirmataCommandSequence

The sequence that was sent

reply
Byte[]

The reply

Returns

True if this reply matches the sequence. True is the default, for backwards compatibility

Applies to