remotely-monitor-and-control-devices-with-iot-hub

所属分类:物联网
开发工具:C#
文件大小:18KB
下载次数:0
上传日期:2019-12-12 17:41:22
上 传 者sh-1993
说明:  学习模块的代码示例:使用物联网中心远程监控设备。本例中的场景是...
(Code samples for the Learn module: Remotely monitor and control devices with IoT Hub. The scenario in this example is monitoring a wine cellar.)

文件列表:
CODE_OF_CONDUCT.md (453, 2019-12-13)
LICENSE (1162, 2019-12-13)
SECURITY.md (2865, 2019-12-13)
device (0, 2019-12-13)
device\Program.cs (10347, 2019-12-13)
device\app.js (7606, 2019-12-13)
hub (0, 2019-12-13)
hub\Program.cs (7145, 2019-12-13)
hub\app.js (4611, 2019-12-13)
package.json (485, 2019-12-13)

--- page_type: sample languages: - javascript - csharp products: - azure-iot-hub description: "This sample is the source code created in the Remotely monitor and control devices with IoT Hub Learn module. The scenario is monitoring and controlling an IoT device in a cheese cave." urlFragment: "remotely-monitor-and-control-devices-with-iot-hub" --- # Remotely monitor and control devices with IoT Hub Learn module The sample here provides the source code that is created with the **Remotely monitor and control devices with IoT Hub** Learn module. This module creates an Azure IoT Hub app, to monitor the temperature and humidty of a cheese cave. A device app, written in Node.js, sends telemetry to the IoT Hub, which uses _device twins_ and _direct method_ technologies to control the settings of the cheese cave. ## Contents | File/folder | Description | |-------------------|--------------------------------------------| | `Device/app.js` | Sample Node.js source code for the device | | `Hub/app.js` | Sample Node.js source code for the back-end service | | `Device/Program.cs` | Sample C# source code for the device | | `Hub/Program.cs` | Sample C# source code for the back-end service | | `.gitignore` | Define what to ignore at commit time. | | `CHANGELOG.md` | List of changes to the sample. | | `CONTRIBUTING.md` | Guidelines for contributing to the sample. | | `README.md` | This README file. | | `LICENSE` | The license for the sample. | ## Prerequisites The student of the module will need familiarity with the Azure IoT Hub portal. The code development can be done using Visual Studio, or Visual Studio Code. The code itself is written in either Node.js, or C#. ## Setup The setup is explained in the text for the module. The module does not require the student to download the code from this location, the code is listed and explained in the Learn module. The code here is a resource if the student needs it. ## Running the sample Running the sample requires that the student go through all the steps of the Learn module. ## Key concepts The sample simulates monitoring and controlling the temperature and humidity of a cheese cave. A device app communicates telemetry from a device to the IoT Hub. The sample also includes code for a back-end service app. This app is used to send desired properties to the remote device. The back-end service utilizes Azure _device twins_ and _direct methods_ technology to perform the synchronization. ## Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com. When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

近期下载者

相关文件


收藏者