简体   繁体   English

从运行WiN CE 6设备的C#.net CF 3.5向IBM Websphere MQ发送消息的最佳方法

[英]Best way to send message to IBM Websphere MQ from C# .net CF 3.5 running WiN CE 6 devices

I am new to IBM websphere MQ and am looking for best way to send message from win CE 6 device using c# .net CF 3.5 app to MQ. 我是IBM Websphere MQ的新手,我正在寻找使用c#.net CF 3.5应用程序从Win CE 6设备向MQ发送消息的最佳方法。 I have searched and found that WebSphere MQ Telemetry and a MQTT client can do this. 我搜索并发现WebSphere MQ Telemetry和MQTT客户端可以做到这一点。 Is there any other way? 还有其他办法吗? Can i do it with plain IBM websphere MQ 6 or 7.5 ? 我可以使用普通的IBM Websphere MQ 6或7.5吗? If WebSphere MQ Telemetry and a MQTT client is the only way.... can someone please explain the architecture for this. 如果只有WebSphere MQ Telemetry和MQTT客户端是...。有人可以解释一下此体系结构。 How to setup MQ and how to start writing a client? 如何设置MQ以及如何开始编写客户端?

Thanks for reading and apologies if i didn't make my query clear. 如果我不清楚我的查询,感谢您的阅读和歉意。 Regards, Zia 问候,齐亚

MQ .NET client is available for a full fledged .NET Framework, not available for Compact .NET Framework. MQ .NET客户端可用于完整的.NET Framework,而不适用于Compact .NET Framework。 So you will need to use a MQTT .NET client and connect to MQ. 因此,您将需要使用MQTT .NET客户端并连接到MQ。 There are number of MQTT .NET clients available. MQTT .NET客户端数量很多。 You can use any of them to develop your application. 您可以使用它们中的任何一个来开发应用程序。

Here is some information on setting up MQTT channel in MQ: http://www.ibm.com/support/knowledgecenter/SSFKSJ_9.0.0/com.ibm.mq.adm.doc/q021270_.htm 以下是有关在MQ中设置MQTT通道的一些信息: http : //www.ibm.com/support/knowledgecenter/SSFKSJ_9.0.0/com.ibm.mq.adm.doc/q021270_.htm

Regarding the MQTT client for Windows CE and .Net Compact Framework 3.5, there is the M2Mqtt library as part of the Eclipse Paho project : 关于Windows CE和.Net Compact Framework 3.5的MQTT客户端,M2Mqtt库是Eclipse Paho项目的一部分:

https://github.com/eclipse/paho.mqtt.m2mqtt https://github.com/eclipse/paho.mqtt.m2mqtt

Paolo. 保罗

facing the same concerns to connect to AWS.IoT from cfnet 3.5 + wince 6... 从cfnet 3.5 + wince 6连接到AWS.IoT面临着同样的问题...

the big issue with working in cfnet 3.5 is that there is no support for System.Net.Security and System.Security.Authentication (afaik); 使用cfnet 3.5的最大问题是不支持System.Net.Security和System.Security.Authentication(afaik); so you can't use SSL. 因此您不能使用SSL。

If SSL is needed, you'll need to use native libraries such as paho.mqtt.c + openssl. 如果需要SSL,则需要使用本地库,例如paho.mqtt.c + openssl。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM