publishData method

MqttPublishMessage publishData (
  1. Uint8Buffer data
)

Appends data to publish to the end of the current message payload.

Implementation

MqttPublishMessage publishData(typed.Uint8Buffer data) {
  payload.message.addAll(data);
  return this;
}