Skip to content

An example project that implements Saunter + MQTTnet + MQTTnet.AspNetCore.AttributeRouting in ASP.NET 5

License

Notifications You must be signed in to change notification settings

Rikj000/Saunter-MQTTnet-AspNet5-AttributeRouting-ExampleProject

Repository files navigation

Saunter MQTTnet AspNet5 AttributeRouting ExampleProject

Total Releases Downloaded from GitHub Latest Official Release on GitHub MIT License The current place where you can find all Saunter-MQTTnet-AspNet5-AttributeRouting-ExampleProject Documentation! ICONOMI - The world’s largest crypto strategy provider Buy me a Coffee as a way to sponsor this project!

An example project that implements following packages in a ASP.NET 5 MQTT Broker/Server:

Current Implemented Package Status:

Some Notes:

  • Tested with MQTTnet.App as the client, configured as following:
    • Transport protocol: WebSocket
    • TLS version: no TLS
    • Host: localhost:5000/mqtt
    • Port: 5000
  • A CatchAllController has been implemented, this will log all MQTT related messages going in/out of the MQTTnet Broker/Server
  • A (MQTT) ExampleController has been implemented with following Publish Topics:
    • ExampleController/publish/<PostalCode>/temperature
      • PostalCode: 90210
      • Payload: int
    • ExampleController/publish/test
      • Payload: byte
  • The MqttService has been implemented with following Subscribe Topic:
    • MqttService/subscribe/kiss
      • It will send a Payload every KissIntervalSeconds (Configurable in appsettings.json) for as long as there are clients connected.
      • Payload: $"MQTTnet hosted on {frameworkName} is still running at {DateTime.Now}!"
    • Here you can also configure various MQTT Broker related settings / handlers
  • Startup is where most of the other Package configuration happens

About

An example project that implements Saunter + MQTTnet + MQTTnet.AspNetCore.AttributeRouting in ASP.NET 5

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages