Compare commits
3
Commits
7b3d608c17
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a913efc4a | ||
|
|
04d70426ef | ||
|
|
0957512354 |
@@ -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")]
|
||||
@@ -21,4 +21,8 @@
|
||||
<DefineConstants>TRACE;SSL</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="../README.md" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -48,9 +48,10 @@ namespace uPLibrary.Networking.M2Mqtt {
|
||||
private Socket socket;
|
||||
// using SSL
|
||||
private readonly Boolean secure;
|
||||
|
||||
#if MF_FRAMEWORK_VERSION_V4_2 || MF_FRAMEWORK_VERSION_V4_3
|
||||
// CA certificate (on client)
|
||||
private readonly X509Certificate caCert;
|
||||
#endif
|
||||
// Server certificate (on broker)
|
||||
private readonly X509Certificate serverCert;
|
||||
// client certificate (on client)
|
||||
@@ -197,7 +198,9 @@ namespace uPLibrary.Networking.M2Mqtt {
|
||||
this.RemoteIpAddress = remoteIpAddress;
|
||||
this.RemotePort = remotePort;
|
||||
this.secure = secure;
|
||||
#if MF_FRAMEWORK_VERSION_V4_2 || MF_FRAMEWORK_VERSION_V4_3
|
||||
this.caCert = caCert;
|
||||
#endif
|
||||
this.clientCert = clientCert;
|
||||
this.sslProtocol = sslProtocol;
|
||||
#if !(MF_FRAMEWORK_VERSION_V4_2 || MF_FRAMEWORK_VERSION_V4_3 || COMPACT_FRAMEWORK)
|
||||
|
||||
Reference in New Issue
Block a user