RemoteMessageFrame

public void RemoteMessageFrame(Array<byte> rawFrame)

Constructor primarily used to re-build remote messages from the chunks that come across the bluetooth radio.

Parameters

rawFrame

A byte array. Usually direct output from the bluetooth radio.


public void RemoteMessageFrame(Array<byte> payload, int messageId, int totalChunks, int chunk)

Create a RemoteMessageFrame from the passed-in parameters. Primarily used while converting a remote message to chunks to send over the bluetooth radio.

Parameters

payload

The actual byte array of content to send.

messageId

An ID used to tie multiple RemoteMessage chunks together.

totalChunks

The total number of chunks required to represent a single RemoteMessage.

chunk

The specific chunk represented by this frame.