In previous posts, we worked with MQTTnet version 3, although version 4 of MQTTnet came in Jun 2022. As MQTTnet version 4 has a lot of changes, I thought it would be helpful to write a new article about developing a simple MQTT broker using this vers...

Markdown supported · ⌘↵ to post
Bigberm
Hi,
I got this error when using await in front of // Start the server await server.StartAsync();
"The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task'."
How to fix it?
Thank you,
Bigberm