如何将真实设备与IoT Hub连接 [英] how to connect real device with IoT Hub

查看:107
本文介绍了如何将真实设备与IoT Hub连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经使用Azure IoT Hub创建并注册了虚拟设备/ Raspberry Pi模拟器。现在请指导我如何使用Azure IoT Hub连接真实设备。所以我可以从设备获取数据。


设置它的设置和先决条件。


我必须连接我的计划机器使用Azure IoT Hub。


请指导。


Thx





iffi

解决方案

你好imughal,


如果你已经关注
this虚拟设备的教程
,而
这里是一个连接Raspberry Pi的真实设备,您可以选择node.js,C或python语言。 


与真实设备有什么不同你需要一个Raspberry Pi 2或Raspberry Pi 3板和以下产品:



  • 连接到Pi的显示器,USB键盘和鼠标。
  • 运行Windows或Mac的Mac或PC Linux。
  • 互联网连接。
  • 一张16 GB或以上的microSD卡。
  • USB-用于将操作系统映像刻录到microSD卡上的SD适配器或microSD卡。
  • 带有6英尺micro USB线的5伏2安培电源。

如果你想从真实传感器设备读取温度数据,你还需要(可选):



  • 组装的Adafruit BME280温度,压力和湿度传感器。
  • 面包板。
  • 扩散的10毫米LED。

如果您没有sensor,将simulatedData值设置为true以使示例应用程序创建并使用模拟的传感器数据。


您可以按照"将Raspberry Pi连接到Azure IoT Hub(Node.js)"进行操作。一步一步的教程。如果您有任何问题,请随时告诉我。



祝你好运,


丽塔


Hi,

I have created and registered virtual device / Raspberry Pi simulator with Azure IoT Hub. Now please guide how do i get connected real device with Azure IoT Hub. so that i can get data from device.

what setup and pre-requisite are for setting it up.

I have to connect my plan machine with Azure IoT Hub.

Pls guide.

Thx


iffi

解决方案

Hello imughal,

If you have followed this tutorial for virtual device, while here is a connecting real device for Raspberry Pi, you can choose node.js, C or python language. 

What's different with real device is you need have a Raspberry Pi 2 or Raspberry Pi 3 board and the following:

  • A monitor, a USB keyboard, and mouse that connects to Pi.
  • A Mac or PC that is running Windows or Linux.
  • An internet connection.
  • A 16 GB or above microSD card.
  • A USB-SD adapter or microSD card to burn the operating system image onto the microSD card.
  • A 5-volt 2-amp power supply with the 6-foot micro USB cable.

If you want to read temperature data from real sensor device you also need(optional):

  • An assembled Adafruit BME280 temperature, pressure, and humidity sensor.
  • A breadboard.
  • 6 F/M jumper wires.
  • A diffused 10-mm LED.

If you don't have the sensor, set the simulatedData value to true to make the sample application create and use simulated sensor data.

You can follow "Connect Raspberry Pi to Azure IoT Hub (Node.js)" tutorial step by step. Feel free let me know if you have any problem.

Best regards,

Rita


这篇关于如何将真实设备与IoT Hub连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆