dotnet / MQTTnet

MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). The implementation is based on the documentation from http://mqtt.org/.
MIT License
4.51k stars 1.07k forks source link

Hi, There is no callback function after the message is published successfully #962

Closed liaoliaoda closed 4 years ago

liaoliaoda commented 4 years ago

Describe the feature request

Does the new release version have callback function (include success and fail ) when message is published like paho.java?

I have tested the PublishAsync function, the msg published success when the network connected normal, but there is no exception appear when I disconnect the network and publish the msg. so I publish the msg cotinue and the exception(connection lost) appear after ten seconds later. so during about ten seconds, our msg is missing and I do not konw the details of the missing message. any solution about this?

Thanks very much

Which project is your feature request related to?

SeppPenner commented 4 years ago

Possible duplicate of https://github.com/chkr1011/MQTTnet/issues/944.

liaoliaoda commented 4 years ago

ok, thanks for your reply, I hava solved this issue.