public class AwsIotMessage extends Object
Constructor and Description |
---|
AwsIotMessage(String topic,
int qos,
boolean retained,
byte[] payload)
Create an IoT message.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getPayload()
Gets the payload.
|
int |
getQos()
Gets the qos.
|
String |
getTopic()
Gets the topic.
|
boolean |
isRetained()
Gets the retained.
|
public AwsIotMessage(String topic, int qos, boolean retained, byte[] payload)
topic
- MQTT topicqos
- MQTT quality of serviceretained
- should the message be retained by the MQTT broker.payload
- message data.public byte[] getPayload()
public int getQos()
public String getTopic()
public boolean isRetained()