sendClearText method

void sendClearText(
  1. bool meta,
  2. List<int> cleartext
)

Process and send clear text data within the Strobe protocol.

The sendClearText method is used to process and send clear text data within the Strobe protocol. It applies operations specific to clear text data and incorporates metadata when necessary, preparing the data for transmission.

Parameters:

  • meta: A boolean flag indicating whether metadata is included in the operation.
  • cleartext: A List

Usage:

List<int> dataToSend = ...; // Clear text data to send.
strobeInstance.sendClearText(true, dataToSend);
// Process and send the clear text data within the Strobe protocol.

The sendClearText method is a crucial part of the Strobe protocol, ensuring that clear text data is properly processed, potentially with metadata, and made ready for transmission.

Implementation

void sendClearText(bool meta, List<int> cleartext) {
  operate(meta, StrobeOperation.sendClr, cleartext, 0, false);
}