toTopic method
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;
}