0

我想创建一个在Raspberry Pi 2上运行的应用程序,并使用MSMQ发送带有一些收集数据的消息。我在Raspberry Pi上安装了Windows 10。在Windows 10上使用树莓派2上的MSMQ

我已经为此目的使用MS Visual Studio 2015创建了一个测试项目(Windows通用类型)。我也不能使用很多引用(例如System.Messaging),因为树莓体系结构的原因如下理解。

甚至可以在Raspberry Pi 2上使用MSMQ吗?或者,请帮助我找到任何MSMQ类似物从Raspberry Pi发送消息。

预先感谢您!

回答

0

Windows 10 IoT Core适用于IoT场景,这意味着您最终必须连接到云。这里最好的方法是使用服务总线队列将Raspberry Pi 2上的Windows 10 Universal App连接到Azure。这MSDN mag文章解释了这种方法:https://msdn.microsoft.com/en-us/magazine/dn574801.aspx

就实施而言,Azure的Service Bus文档位于http://azure.microsoft.com/en-us/documentation/services/service-bus/。队列覆盖https://azure.microsoft.com/en-us/documentation/articles/service-bus-dotnet-how-to-use-queues/。 Azure SDK将可用于Pi上的应用程序。

我希望这会有所帮助。

+0

非常感谢!我将调查这种方法。 – Alexander

+0

另请注意,虽然服务总线队列与在Windows 10 IoT Core上使用MSMQ进行树莓派最接近,但您应该考虑Azure事件中心,因为它们专为大量成千上万物联网设备的数据设计。请参阅http://azure.microsoft.com/en-us/services/event-hubs/上的文档。完整的物联网样本由MSOpenTech设计,并称为Connect the Dots,请参阅https://github.com/msopentech/connectthedots。两个Windows 10样本IoT客户端位于https://github.com/MSOpenTech/connectthedots/tree/master/Devices/DirectlyConnectedDevices。 – ActiveNick