toTopic method

MqttPublishMessage toTopic (
  1. String topicName
)

Sets the topic to publish data to.

Implementation

MqttPublishMessage toTopic(String topicName) {
  variableHeader.topicName = topicName;
  return this;
}