简体   繁体   English

Azure服务总线消息传递

[英]Azure Service bus messaging

I want to connect a windows phone 8.1 application to my raspberry pi running windows IoT (UWP). 我想将Windows Phone 8.1应用程序连接到运行Windows IoT(UWP)的树莓派。 I wanted to know how can I implement a azure service bus to transfer data from my phone to windows IoT. 我想知道如何实现Azure Service Bus将数据从手机传输到Windows IoT。 I found this documentation but I can't seem to install the nugget package. 我找到了此文档,但似乎无法安装nugget软件包。 Am I following the wrong documentation? 我是否遵循错误的文档? I need help. 我需要帮助。 Thanks 谢谢

Based on my understanding, your needs is that sending messages from Windows Phone and receiving them on Respberry Pi device, and message transpose via a message queue service like Azure Service Bus. 根据我的理解,您需要从Windows Phone发送消息并在Respberry Pi设备上接收消息,并通过诸如Azure Service Bus之类的消息队列服务来进行消息转置。 It's an IoT project. 这是一个物联网项目。

As I known, Azure support IoT via Azure IoTHub service. 众所周知,Azure通过Azure IoTHub服务支持IoT。 It's the offical recommend way for IoT project. 这是物联网项目的官方推荐方式。

So for helping you get start with IoTHub, please follow the steps below. 因此,为帮助您开始使用IoTHub,请按照以下步骤操作。

  1. Setup an IoTHub service on Azure, please see the doc Get started with Azure IoT Hub for .NET 在Azure上设置IoTHub服务,请参阅文档Azure IoT Hub for .NET入门
  2. For sending messages from Windows Phone, I think you can try to follow the blog to connect the IoTHub service and send messages. 为了从Windows Phone发送消息,我认为您可以尝试关注博客以连接IoTHub服务并发送消息。 The other way is using the REST API for sending device-to-cloud message to IoTHub via HttpClient, you can refer to the UWP sample for HttpClient and the tutorial to do it. 另一种方法是使用REST API通过HttpClient 将设备到云的消息发送到IoTHub,您可以参考HttpClient的UWP示例以及本教程中的 示例
  3. For receiving messges on Raspberry Pi device, there is an offical sample code using IoTHub SDK for device you can refer to, please see https://github.com/Azure/azure-iot-sdks/blob/master/doc/get_started/windows10-iotcore-csharp.md . 要在Raspberry Pi设备上接收消息,有一个使用IoTHub SDK的官方示例代码可供参考,请参见https://github.com/Azure/azure-iot-sdks/blob/master/doc/get_started/ windows10-iotcore-csharp.md

Any concern, please feel free to let me know. 如有任何疑问,请随时告诉我。

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

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