toTopic method
- String topicName
Sets the topic to publish data to.
Implementation
MqttPublishMessage toTopic(String topicName) {
variableHeader.topicName = topicName;
return this;
}
Sets the topic to publish data to.
MqttPublishMessage toTopic(String topicName) {
variableHeader.topicName = topicName;
return this;
}