Open chenziyi2018 opened 3 years ago
sorry its not bug, I used a wrong tag
is it a bug or a question ?
is it a bug or a question ?
its a question. I write a demo like this, bug it not work : subscriber cant receive the published message.
i want to use the vertx in my project. but development documents are too less, and the samples are too simple. can you give me some suggests?
I have the same problem,
endpoint.publishHandler { message ->
// this is ok;
println("publishHandler topic: ${message.topicName()} payload: ${message.payload()}")
if (message.qosLevel() == MqttQoS.AT_LEAST_ONCE) {
endpoint.publishAcknowledge(message.messageId())
} else if (message.qosLevel() == MqttQoS.EXACTLY_ONCE) {
endpoint.publishReceived(message.messageId())
}
}.publishReleaseHandler { messageId -> endpoint.publishComplete(messageId) }
but other clients subscribe topic can't get the message; do you need to manually forward the subscription to other clients
how to get message from subscribe ? i can't find a method to get message from
how to get message from subscribe ? i can't find a method to get message from
method name is not good,i think 。 this is not a bug,i use 'publishHandler' to get message from subscribe
yeah, vertx-mqtt is not a fully featured MQTT broker. You need to complete pub/sub message passage by yourself.
Questions
subscriber cant receive topic message
Version
4.0.0
Context
client code
` @Slf4j public class MqttClientVerticle extends AbstractVerticle {
}`
` @Slf4j public class MqtttServer extends AbstractVerticle { private static final String TOPIC_LIGHTS = "lights";
}`
` @Slf4j public class VertxServer extends AbstractVerticle {
}`
description
when the client init on project start, I can receive the msg publish by the mqtt server subscribeHandler "hello", but when I use the web router "/hello" to publish msg to the topic "/topic" the subscriber client "client_1111" cant recieve the msg ...
help me please ~ T_T ~