This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* We can subscribe topic from here | |
*/ | |
public void subscribeToTopic() { | |
try { | |
/** | |
* @param topic_name | |
* @param QOS_level (0,1,2) | |
* @param userContext | |
* @param Listener |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Publisher method: publishing data over MQTT broker (RABBIT_MQ) | |
*/ | |
public void publishMessage() { | |
publishThreadMQTT = new Thread(new Runnable() { | |
@Override | |
public void run() { | |
try { | |
if (mqttAndroidClient != null) { |