keesschollaart81 / CaseOnline.Azure.WebJobs.Extensions.Mqtt

Mqtt Bindings for Azure Functions!
MIT License
63 stars 33 forks source link

how to subscribe with cleansession: false #39

Open kiranpradeep opened 5 years ago

kiranpradeep commented 5 years ago

The ManagedClient of MQTTNet doesn't support clean session as false. How can use cleansession:false with this extension?

keesschollaart81 commented 4 years ago

The example project has an example of a 'Complex Configuration' as demonstrated here. Here you can add a .WithCleanSession(true)

kiranpradeep commented 4 years ago

No. It still throws "System.NotSupportedException: The managed client does not support existing sessions". It is an issue with underlying library. But then, users of this extension are impacted and ideally I felt this ticket should be left open until underlying library (mqtt.net) brings the PR to a release nuget.

keesschollaart81 commented 4 years ago

Yeah, let's leave it open. As soon as there is a major new release of MQTTNet, I'll incorporate it so that it will work here as well! 👍