Compare commits

..
4 Commits
Author SHA1 Message Date
BlubbFish 0a913efc4a Add Readme and Error Suppression 2026-08-03 23:07:55 +02:00
BlubbFish 04d70426ef make mirror on github.com 2021-08-22 00:20:43 +02:00
BlubbFish 0957512354 updateing some unused var to ifdef 2021-04-10 18:57:53 +02:00
BlubbFish 7b3d608c17 Make netcore as default, also using 3.1 now 2021-01-09 00:22:45 +01:00
5 changed files with 23 additions and 4 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16 # Visual Studio Version 16
VisualStudioVersion = 16.0.29519.87 VisualStudioVersion = 16.0.29519.87
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "M2Mqtt", "M2Mqtt\M2Mqtt_Core.csproj", "{18F706D2-7610-428C-8324-8327F9D7BE90}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "M2Mqtt", "M2Mqtt\M2Mqtt.csproj", "{18F706D2-7610-428C-8324-8327F9D7BE90}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
+10
View File
@@ -0,0 +1,10 @@
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
using System.Diagnostics.CodeAnalysis;
[assembly: SuppressMessage("Style", "IDE0046:In bedingten Ausdruck konvertieren", Justification = "<Ausstehend>", Scope = "member", Target = "~M:uPLibrary.Networking.M2Mqtt.MqttClient.Publish(System.String,System.Byte[],System.Byte,System.Boolean)~System.UInt16")]
[assembly: SuppressMessage("CodeQuality", "IDE0051:Nicht verwendete private Member entfernen", Justification = "<Ausstehend>", Scope = "member", Target = "~M:uPLibrary.Networking.M2Mqtt.MqttClient.SendReceive(System.Byte[])~uPLibrary.Networking.M2Mqtt.Messages.MqttMsgBase")]
[assembly: SuppressMessage("Style", "IDE0046:In bedingten Ausdruck konvertieren", Justification = "<Ausstehend>", Scope = "member", Target = "~M:uPLibrary.Networking.M2Mqtt.MqttClient.SendReceive(System.Byte[],System.Int32)~uPLibrary.Networking.M2Mqtt.Messages.MqttMsgBase")]
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework> <TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>M2Mqtt</AssemblyName> <AssemblyName>M2Mqtt</AssemblyName>
<RootNamespace>uPLibrary.Networking.M2Mqtt</RootNamespace> <RootNamespace>uPLibrary.Networking.M2Mqtt</RootNamespace>
<Description>MQTT Client Library for M2M communication</Description> <Description>MQTT Client Library for M2M communication</Description>
@@ -21,4 +21,8 @@
<DefineConstants>TRACE;SSL</DefineConstants> <DefineConstants>TRACE;SSL</DefineConstants>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<Content Include="../README.md" />
</ItemGroup>
</Project> </Project>
+4 -1
View File
@@ -48,9 +48,10 @@ namespace uPLibrary.Networking.M2Mqtt {
private Socket socket; private Socket socket;
// using SSL // using SSL
private readonly Boolean secure; private readonly Boolean secure;
#if MF_FRAMEWORK_VERSION_V4_2 || MF_FRAMEWORK_VERSION_V4_3
// CA certificate (on client) // CA certificate (on client)
private readonly X509Certificate caCert; private readonly X509Certificate caCert;
#endif
// Server certificate (on broker) // Server certificate (on broker)
private readonly X509Certificate serverCert; private readonly X509Certificate serverCert;
// client certificate (on client) // client certificate (on client)
@@ -197,7 +198,9 @@ namespace uPLibrary.Networking.M2Mqtt {
this.RemoteIpAddress = remoteIpAddress; this.RemoteIpAddress = remoteIpAddress;
this.RemotePort = remotePort; this.RemotePort = remotePort;
this.secure = secure; this.secure = secure;
#if MF_FRAMEWORK_VERSION_V4_2 || MF_FRAMEWORK_VERSION_V4_3
this.caCert = caCert; this.caCert = caCert;
#endif
this.clientCert = clientCert; this.clientCert = clientCert;
this.sslProtocol = sslProtocol; this.sslProtocol = sslProtocol;
#if !(MF_FRAMEWORK_VERSION_V4_2 || MF_FRAMEWORK_VERSION_V4_3 || COMPACT_FRAMEWORK) #if !(MF_FRAMEWORK_VERSION_V4_2 || MF_FRAMEWORK_VERSION_V4_3 || COMPACT_FRAMEWORK)
+3 -1
View File
@@ -1,2 +1,4 @@
# M2Mqtt # M2Mqtt
Based on https://github.com/eclipse/paho.mqtt.m2mqtt Based on https://github.com/eclipse/paho.mqtt.m2mqtt
Maybe you find this Repo on Github. This is a mirror from [here](https://git.blubbfish.net/vs_librarys/mqtt).