How to send data from a device to IOT HUB?

此生再无相见时 提交于 2019-12-13 08:58:26

问题


I am new to Cloud Technology and I want to send the data from Android Device to IoT Hub using Android Studio, I am able to send data using device to IoT Hub by referring to the https://docs.microsoft.com i.e; "Send device-to-cloud messages to IoT Hub"

I am able to get the device ID of a particular device from Android Studio and I want it to be displayed in IoT Hub using Android Studio,

Kindly help me or refer some site for specific Android Device to IOT Hub Connectivity and Data transfer


回答1:


On Android Device,there are two solutions to implement IoT Hub Connectivity and Data transfer.

  1. Directly sending data to IoT Hub(device-to-cloud) and receiving data from IoT Hub(cloud-to-device).You can use Azure IoT Hub for Java, the Device SDK can be used on Android with the API version 17 and higher. And please refer to Connect your device to your IoT hub using Java,in this guide,tutorial shows you how to creates a device identity and associated security key to connect your device app.
  2. Make Node.JS apps for Android with Azure IoT device SDK for Node.js.Please note that this way only supports ARM64 Currently.

Either way can implement your needs as long as you like.



来源:https://stackoverflow.com/questions/47810999/how-to-send-data-from-a-device-to-iot-hub

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!