emqx-coap icon indicating copy to clipboard operation
emqx-coap copied to clipboard

Subtopic doesn't work

Open rjbaat opened this issue 6 years ago • 5 comments

Hi , I have tested this plugin with 2.3.11 and it works. I can pub/sub to a topic. But when doing a pub to topic/subtopic it doesn't work.

What do i do wrong and how to get that working?

Also what does it mean to mandatory use mqtt in the topic url? When i add it to the url it works, but not when i leave it out.

rjbaat avatar Sep 13 '18 09:09 rjbaat

@rjbaat What version of EMQ are you using?

Is it 3.0 beta.1 or beta.2? We're updating this this plugin so it would work at EMQ X 3.0 beta.3. Thanks.

If it is 2.3.11, here're some examples to do pub/sub. Could you give me some more details which command doesn't work? And the error logs?

terry-xiaoyu avatar Sep 17 '18 08:09 terry-xiaoyu

I used 2.3.11 indeed. And with a single /mqtt/topic its working. But i am not sure how to pub/sub to a sub sub sub topic for example: mqtt/topic/subtopic When doing: mqtt/topic%2Fsubtopic. EMQ sees: topic%2Fsubtopic not: topic/subtopic

rjbaat avatar Sep 17 '18 12:09 rjbaat

Try to use mqtt/topic/subtopic instead of mqtt/topic%2Fsubtopic.

terry-xiaoyu avatar Sep 18 '18 01:09 terry-xiaoyu

Well i tried that at first, but then it won't subscribe at all. It will only subscribe with only a parent topic. With subtopic it won't subscribe.

rjbaat avatar Sep 18 '18 06:09 rjbaat

@rjbaat I'll fix this on 3.0 beta.3, which will be released this weekend. Thanks.

terry-xiaoyu avatar Sep 19 '18 02:09 terry-xiaoyu