-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
subscriber cant receive topic message #192
Comments
sorry its not bug, I used a wrong tag |
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 |
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; |
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
Version
4.0.0
Context
`
@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 ~
The text was updated successfully, but these errors were encountered: