ExtendedCommandHandler.OnSysexData(ReplyType, Byte[]) Method

Definition

This is called when a sysex command is received from the board. This can include the reply to a command sent by a SendCommandAndWait(FirmataCommandSequence) before, in which case the reply should be ignored, as it is returned as result of the call itself. Therefore it is advised to use this function only to listen for data sent by the device automatically (e.g event messages or recurring status reports)

protected virtual void OnSysexData (Iot.Device.Arduino.ReplyType type, byte[] data);
abstract member OnSysexData : Iot.Device.Arduino.ReplyType * byte[] -> unit
override this.OnSysexData : Iot.Device.Arduino.ReplyType * byte[] -> unit
Protected Overridable Sub OnSysexData (type As ReplyType, data As Byte())

Parameters

type
ReplyType

Type of data received from the hardware. This should normally be SysexCommand, unless the hardware sends unencoded Ascii messages

data
Byte[]

The binary representation of the received data

Remarks

The implementation needs to check the type and source of the data. The messages are not filtered by requester!

Applies to