writeTo method

void writeTo(
  1. MqttByteBuffer stream
)

Writes a subscription option to the supplied message stream.

Implementation

void writeTo(MqttByteBuffer stream) {
  stream.writeByte(serialize());
}