ExtendedCommandHandler.HasCommandError(FirmataCommandSequence, Byte[]) Method

Definition

Callback function that returns whether the given reply indicates an error

protected virtual Iot.Device.Arduino.CommandError HasCommandError (Iot.Device.Arduino.FirmataCommandSequence sequence, byte[] reply);
abstract member HasCommandError : Iot.Device.Arduino.FirmataCommandSequence * byte[] -> Iot.Device.Arduino.CommandError
override this.HasCommandError : Iot.Device.Arduino.FirmataCommandSequence * byte[] -> Iot.Device.Arduino.CommandError
Protected Overridable Function HasCommandError (sequence As FirmataCommandSequence, reply As Byte()) As CommandError

Parameters

sequence
FirmataCommandSequence

The original sequence

reply
Byte[]

The reply. IsMatchingAck(FirmataCommandSequence, Byte[]) is already tested to be true for this reply

Returns

A command error code, in case this reply indicates a no-acknowledge

Applies to