[英]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.