The following code makes application crash. Problem is that when MqttMsgPublish.GetBytes() function makes check for wildcards inside the topic name while publishing message, it (reasonably) throws exception MqttClientException(MqttClientErrorCode.TopicWildcard) (line 107 of the file MqttMsgPublish.cs). This exception is NOT handled anywhere in inflight threads and makes the whole app crashing. I suggest to move this and other related checks from GetBytes() function to MqttClient.Publish() function or make some notification mechanism for errors in inflight thread.
The following code makes application crash. Problem is that when MqttMsgPublish.GetBytes() function makes check for wildcards inside the topic name while publishing message, it (reasonably) throws exception MqttClientException(MqttClientErrorCode.TopicWildcard) (line 107 of the file MqttMsgPublish.cs). This exception is NOT handled anywhere in inflight threads and makes the whole app crashing. I suggest to move this and other related checks from GetBytes() function to MqttClient.Publish() function or make some notification mechanism for errors in inflight thread.