emq

How can i connect a Java mqtt client with username and password to an emqttd(EMQ) broker?

半腔热情 提交于 2019-12-09 22:58:54
问题 I am able to subscribe to the mosquitto broker with this Java code, without username and password. Now, i would like to subscribe to an emqttd broker which requires some dummy username and password. How can i do this?. Thanks. http://tgrall.github.io/blog/2017/01/02/getting-started-with-mqtt/#disqus_thread https://github.com/emqtt/emqttd package com.mapr.demo.mqtt.simple; import org.eclipse.paho.client.mqttv3.MqttClient; import org.eclipse.paho.client.mqttv3.MqttException; public class

How can i connect a Java mqtt client with username and password to an emqttd(EMQ) broker?

假装没事ソ 提交于 2019-12-04 17:13:48
I am able to subscribe to the mosquitto broker with this Java code, without username and password. Now, i would like to subscribe to an emqttd broker which requires some dummy username and password. How can i do this?. Thanks. http://tgrall.github.io/blog/2017/01/02/getting-started-with-mqtt/#disqus_thread https://github.com/emqtt/emqttd package com.mapr.demo.mqtt.simple; import org.eclipse.paho.client.mqttv3.MqttClient; import org.eclipse.paho.client.mqttv3.MqttException; public class Subscriber { public static void main(String[] args) throws MqttException { System.out.println("== START