public interface TopicListener
Modifier and Type | Method and Description |
---|---|
void |
onDataReceived(String topic,
byte[] dataReceived)
Called whenever a message arrives in the broker.
|
void onDataReceived(String topic, byte[] dataReceived)
topic
- the topic where is the message is receiveddataReceived
- the array of bytes of the message (encoding assumed to be ASCII)