public final class MqttMessage extends Object
Constructor and Description |
---|
MqttMessage(String topic,
byte[] payload)
Constructs a new payload
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getPayload()
Gets the message payload
|
String |
getTopic()
Gets the topic associated with this message
|
public MqttMessage(String topic, byte[] payload)
topic
- The topic this message is to be published on or was published topayload
- The message payload.public String getTopic()
public byte[] getPayload()
Copyright © 2019. All rights reserved.