问题
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.
- 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.
- 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