public interface MqttSubscribeCallback
MqttSubscribeCallback interface provides subscription
 callback and enumerates the message types.| Modifier and Type | Field and Description | 
|---|---|
| static int | MQTT_SUBSCRIBE_DENIEDSubscription is denied by the broker. | 
| static int | MQTT_SUBSCRIBE_GRANTEDSubscription is granted by the broker. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | onSubscribeEvent(int reason,
                byte[] topic,
                int qos)Called when a subscription event occurs. | 
static final int MQTT_SUBSCRIBE_DENIED
static final int MQTT_SUBSCRIBE_GRANTED
void onSubscribeEvent(int reason,
                      byte[] topic,
                      int qos)
reason - the event reason.topic - Subscription topic.qos - QoS to be used.MqttClient.subscribe(String, int)