Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
251 views
in Technique[技术] by (71.8m points)

android - How to send data from a device to IOT HUB?

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...