RemoteMessageFrame

public class RemoteMessageFrame extends BluetoothFrame

Represents a single byte array as it came across the air on the bluetooth radio, or will be sent over the bluetooth radio. May be a complete RemoteMessage if the message is smaller than the MTU of the bluetooth connection, or will be one of multiple chunks.

Constructors

Link copied to clipboard
public void RemoteMessageFrame(Array<byte> rawFrame)
Constructor primarily used to re-build remote messages from the chunks that come across the bluetooth radio.
public void RemoteMessageFrame(Array<byte> payload, int messageId, int totalChunks, int chunk)
Create a RemoteMessageFrame from the passed-in parameters.

Properties

Link copied to clipboard
public int chunk
Link copied to clipboard
Link copied to clipboard
public final static int HEADER_SIZE
Link copied to clipboard
public int messageId
Link copied to clipboard
public Array<byte> payload
Link copied to clipboard
public int totalChunks
Link copied to clipboard
public byte version

Functions

Link copied to clipboard
public Array<byte> asBytes()
Used when we need a byte representation of the message to send over the radio to the remote device
Link copied to clipboard
Link copied to clipboard
public byte getVersion()