MQTTnet
Serilog
Our great sponsors
MQTTnet | Serilog | |
---|---|---|
13 | 55 | |
4,194 | 6,926 | |
1.8% | 1.3% | |
7.9 | 7.0 | |
10 days ago | 16 days ago | |
C# | C# | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
MQTTnet
-
Communicating between 2 servers without webservice?
MQTT https://github.com/dotnet/MQTTnet
-
What your hidden nuget gems ?
MQTTNet - High perf IOT comms for .NET - https://github.com/dotnet/MQTTnet
-
Workaround for Register-ObjectEvent : Events that require a return value are not supported. ?
I'm trying to use MQTT.Net and so far everything works.. except for event handling.
-
Best way to architecture an application for IoT and RFID
Like the other guy said it depends on the requirements, but you could implement your own mqtt server with MQTTnet with a few lines of code
-
Discussion Thread
For the server we used mosquitto because we already used it in the past (and it's relatively simple), for the client MQTTnet because it's .net and it seemed good enough (mosquitto has a client library too but it's C so I'd have to write some interop). It's a simple protocol so it shouldn't really matter which implementation you use.
- Is there a library or code example on how to decode MQTT Message payload?
-
Demystifying Azure IoT Hub Device SDKs
We are going to use MQTTNet as the foundation for this article, although the same concepts can be applied with any other MQTT client.
-
Coming to .Net core from Python and Linux with what I think is a really simple project - are there any good guides to help me translate my existing knowledge?
[2] https://github.com/dotnet/MQTTnet
- 6 .NET Myths Dispelled — Celebrating (Almost) 21 Years of .NET
-
ESP32 MQTT with Firebase
For example, I used MQTTnet which is a very nice (high performance & extensible) library. And it's free/open source. If you're not writing your server code in .NET, then look for whatever broker libraries are available on your server platform.
Serilog
-
Logging in .NET 8 with Serilog and Seq
To learn more about Serilog, you can visit the documentation on their GitHub project. To learn more about Seq, you can visit the documentation on their website.
-
Microsoft Entity Framework Core 8 samples
These projects use dependency injection for connections and have no logging although they are ready to log to the console via SeriLog setup in Program.cs.
-
Logging - How to configure Log Content?
See here: https://github.com/serilog/serilog/wiki/Configuration-Basics e.g.
-
Using toast notifications in Windows Forms
Captured in public static void OnActivated() and note Log is SeriLog.
-
How to set up Serilog "Enrichers"?
"Serilog": { "Using": [ "Serilog.Sinks.File" ], "Enrich": [ "WithHttpRequestId", "WithExceptionDetails", "WithClientIp" ], "MinimumLevel": { "Default": "Information" }, "WriteTo": [ { "Name": "File", "Args": { "path": "../../../../../Logs/MyApp/MyApp-.log", "rollingInterval": "Day", "retainedFileCountLimit": "7", "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {CorrelationId} {Level:u3}] {Username} {Message:lj}{NewLine}{Exception} {Properties:lj}{NewLine}" } } ] } 👆 I got the enricher names from serilog's wiki. The idea was to log the HTTPRequestId, ClientIp, and automagically log the details of every exception thrown (without having to do _logger.LogError(...)). However I don't see those details in the logs. In Program.cs: ``` var logger = new LoggerConfiguration() .ReadFrom.Configuration(builder.Configuration) .Enrich.FromLogContext() .CreateLogger();
- How to log to an Excel file?
-
How can I fix logger maximum destructuring reached error when using Serilog C#?
You could also write a custom destructuring policy, assuming it's a flurl-specific public exception type and you only need certain properties of it. You'd implement IDestructuringPolicy and then add it to the configuration:
- getting started with loggin
-
A command line tool that converts GraphQL schemas to Karate API tests
Serilog for logging
-
question about TargetFrameworks/multitargetting (new style SDK) csprojs... via serilog example
I've cloned https://github.com/serilog/serilog and I'm not sure what's going on with the multitargetting in the tests? Does this (below) mean, if the dev's OS is windows, then target framework 462 or 471? What should I do on my laptop, which only has the net6 and fw48 sdk installed?
What are some alternatives?
SparkplugNet - SparkplugNet is a library to use the Sparkplug industrial IoT (IIoT) standard in .Net. It uses MQTTnet in the background.
NLog - NLog - Advanced and Structured Logging for Various .NET Platforms
Mqtt2Mqtt - Customize MQTT messages between two brokers
Log4Net - Apache Log4net is a versatile, feature-rich, efficient logging API and backend for .NET
SignalR-Client-Cpp - C++ Client for ASP.NET Core SignalR
ELMAH - Error Logging Modules & Handlers for ASP.NET
SignalR-Client-Cpp - C++ client for ASP.NET SignalR 2.x
Sentry - Sentry SDK for .NET
hivemq-community-edition - HiveMQ CE is a Java-based open source MQTT broker that fully supports MQTT 3.x and MQTT 5. It is the foundation of the HiveMQ Enterprise Connectivity and Messaging Platform
opentelemetry-specification - Specifications for OpenTelemetry
serilog-sinks-console - Write log events to System.Console as text or JSON, with ANSI theme support
Semantic Logging Application Block (SLAB) - Supporting semantic/structured logging for .NET