我们需要连接 Android 应用程序以Azure IoT Hub连续发送遥测读数。对于这种通信,我们需要将设备注册到 Azure IoT Hub。如果我们要连接的设备很少,这个过程就很容易和顺利。但是,Android 应用程序可以由 Play 商店中的任何人安装。要在运行时注册设备,我们可以使用另一个 Azure 服务Azure IoT Hub Device Provisioning Service (DPS)。但是,目前可用于连接 DPS 的 SDK 属于 C#、Node、Java 等。
谁能指导我们如何将 android 设备/手机连接到 DPS,然后将数据发送到 Azure IoT Hub?
仅供参考:到目前为止,我已经配置了 Azure IoT 中心、Azure IoT 中心设备配置服务,并在 DPS 中链接了我的 IoT 中心。在 Enrollment Groups 下,我创建了一个组并随身携带“对称密钥”。
参考资料:如果 android 设备已向 Azure IoT Hub 注册,这是很好的开始 -> https://docs.microsoft.com/en-us/azure/iot-hub/quickstart-send-telemetry-android。
如果您需要任何其他信息,请发表评论。
蒂亚..