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

Tests/MQTTnet.TestApp.AspNetCore2 #925

Closed danielstock closed 4 years ago

danielstock commented 4 years ago

Describe your question

which version of mqttnet.aspnetcore should i use in the project

image

failed to compile line: app.UseConnections(c => c.MapMqtt("/mqtt"));

danielstock commented 4 years ago

i'm using ms.aspnetcore.app 2.2 ms.aspnetcore.razor.design 2.2 mqttnet.aspnetcore 3.0.2

SeppPenner commented 4 years ago

MapMqtt will not work, I guess. Follow the approach that is used in https://github.com/chkr1011/MQTTnet/blob/master/Tests/MQTTnet.TestApp.AspNetCore2/Program.cs.