Closed NowUp closed 4 years ago
Which platform does your client run on and to which server do you connect?
And what is
// After processing, the theme is republished
Event_MQTTMessageReceived?.Invoke(e);
supposed to do?
The client: Windows Server 2019 Datacenter; The Server: Linx CentOS 6.8 ; MQtt Agency: Apache apollo;
Event_MQTTMessageReceived?.Invoke(e);
This is when a message is received, processed in another method, and then the topic is published.
The client: Windows Server 2019 Datacenter; The Server: Linx CentOS 6.8 ; MQtt Agency: Apache apollo;
Are you using .NetCore, .NetFramework, AspNetCore or UWP? I assume either one of the first 3?
As far as I remember correctly, there was an issue with handling publish events in the ApplicationMessageReceivedHandler
. I'm not able to find it yet.
@chkr1011 Can you help here?
Is the.net Core 2.1. I wasn't sure what the problem was, so I put out code that I thought might be important, hoping it would help someone who could fix it.
@NowUp Please remove _EventMQTTMessageReceived?.Invoke(e); for testing and make sure you are awaiting the call of PublishAsync. I can see no async or Task. So I assume the issue is related to that.
I assume this is fixed. If not please reopen this ticket.
Same issue on my end, no subscribe channel at all.
Same issue on my end. Windwos 10, version 1909 Mqttnet Version 3.0.12 Repetition is Occasional。
@chkr1011 I will re-open this.
My question is solved. The cause is that client has possibility of unsubscribing topic after disconnected.
I met a MqttCommunicationTimeOutException, but I'm not sure what the problem, hope to be able to get help. Version 3.0.5 is used.
This is the exception information:
This is considered critical code: