Skip to content

Java Client SDK can't get response after sending live message to Device #1242

Answered by thjaeckle
yuguanxiang asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, so to which address do you send the response via MQTT?
I guess to something like my.test/<something> because that is the only "source" address you configure.

For your questions:

  1. is the ditto connection config is correct?
  2. does Device correctly modify the request message ?
  3. i'm not sure whether my client sdk call is correct, and which is right way?
  4. how to set the timeout for client sdk
  5. what topic should Device publish message to?
  1. yes, seems ok
  2. yes, looks also ok
  3. yes, however I do miss one line which you should add: client.live().startConsumption().toCompletableFuture().get(); - I think without that you won't receive live messages with the client
  4. use the timeout method:
    client.live().f…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@yuguanxiang
Comment options

Answer selected by thjaeckle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants