eclipse / paho.mqtt.m2mqtt

Eclipse Public License 1.0
512 stars 303 forks source link

Wild cards subscription not receiving messages #94

Open TejaswiniiB opened 5 years ago

TejaswiniiB commented 5 years ago

Hi , wild cards are not working for me with this library . If I subscribe and publish to topic of same string ,it's working. But if I subscribe to YOURTHING/# , and if I publish to YOURTHING/top , I am not receiving any msg. I tested the same with python script, where it was working - so the certs generated are correct.

Thanks !

eohlde commented 5 years ago

Hi, This works for me: client.Subscribe(new string[] { "something/+/+/status/#" }, new byte[] { MqttMsgBase.QOS_LEVEL_EXACTLY_ONCE });