简体   繁体   English

使用M2MQTT Paho C#客户端库连接到Azure

[英]Using m2mqtt paho c# client library to connect to azure

Im using m2mqtt c# client library to connect to azure. 我正在使用m2mqtt c#客户端库连接到azure。 While the connection to azure from my laptop using the .NET framework has been successfully established but when I try to connect to azure using WinCE 2013 with .Net 3.9 Compact Framework Im getting errors on Toradex SoM Colibri VF50. 虽然已经成功建立了使用.NET框架从笔记本电脑连接至Azure的连接,但是当我尝试使用带有.Net 3.9 Compact Framework的WinCE 2013连接至Azure时,Toradex SoM Colibri VF50出现错误。 I have used the dll as mentioned in the library for .net compact framework but still getting errors.I have used the same code for both purposes but still didnt succeed. 我使用了.net紧凑框架库中提到的dll,但是仍然出现错误。我将相同的代码用于这两个目的,但仍然没有成功。 The error while debugging is 调试时的错误是

Exception handle:Libraries compiled without SSL Support.

When building the code there are no errors. 构建代码时没有错误。 When I try to run the code using break points I realised that the SSL symbol is not being enabled . 当我尝试使用断点运行代码时,我意识到未启用SSL符号。 As mentioned in their readme file they say that the symbol SSL is by default enabled. 如他们的自述文件中所述,他们说默认情况下启用SSL符号。 But over .net compact framework it isnt working. 但是通过.net紧凑框架,它不起作用。 If anyone has worked or has some link please share.... 如果有人工作或有链接,请分享。

Glancing at the CF 3.9 project file on github , it doesn't look like SSL is defined like it is for some of the other csproj files. 看一下github的CF 3.9项目文件 ,看起来好像没有像其他csproj文件那样定义SSL。 You'll probably have to add that and recompile the library for CF 3.9. 您可能必须添加它并重新编译CF 3.9的库。 If you compare the DefineConstants tag on the various projects you'll see where it should go. 如果在各个项目上比较DefineConstants标记,您将看到它应该去的地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 C#中的M2Mqtt未连接,不给数据 - M2Mqtt in C# is not connected, doesn't give data 哪里可以通过M2mQTT获得NET的HELLO WORLD - Where to get HELLO WORLD for .net with M2mQTT C# 客户端库,用于订阅/发布 MQTT(真正的小型消息代理) - C# client library for subscribing/publishing MQTT (Really Small Message Broker) 无法使用c#.net与Azure MySQL连接 - unable to connect with Azure MySQL using c# .net 将自定义凭据与 Stackdriver Logging API C# 客户端库结合使用 - Using custom credentials with Stackdriver Logging API C# Client Library 如何将 SocketIO 与 C# 客户端连接 - How to connect SocketIO with C# client 为什么我使用库 A 的 C# 客户端需要对库 B(A 使用)有一个 using 语句 - why does my C# client that uses Library A need to have a using statement for Library B (which A uses) > 1个客户端无法使用C#连接到服务器 - >1 client can't connect to server in c# Azure WebJobs 中的 EventStore C# 客户端 - EventStore C# Client in Azure WebJobs 在哪里可以获取ADOMD库(DLL)以使用C#连接到Microsoft多维数据集 - Where can I get ADOMD library (DLL) to connect to Microsoft cubes using C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM