我们如何将Android/iOS应用程序连接到Azure IoT中心并发送遥测数据? [英] How do we connect Android/iOS app to Azure IoT Central and send Telemetry data?

查看:156
本文介绍了我们如何将Android/iOS应用程序连接到Azure IoT中心并发送遥测数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经在Azure IOT Central上注册了IOT设备,并能够在IoT Central上可视化遥测数据.但是,当我们使用Azure在Android Sample应用程序的IOT中心生成的主键发送遥测时,我们无法可视化数据.

We have registered our IOT device on Azure IOT Central and able to visualise Telemetry data on IoT Central. But when we use the Primary key generated on IOT central in Android Sample app by Azure to send Telemetry we cannot visualise the data.

我错过了什么吗?我们如何将iOS和Android注册为IoT Central上的设备以可视化数据?

Am I missing anything? How do we register iOS and Android as a device on IoT Central to visualise the data?

推荐答案

IoT Central团队最近发布了适用于iOS和Android的网关移动设备代码示例,可帮助您通过移动应用程序连接BLE设备进入IoT Central.您可以修改样本以仅发送设备遥测而不是BLE数据.在这里查看示例代码: https://github.com/iot -for-all/iotc-cpm-sample

the IoT Central team just recently released a mobile-device-as-a-gateway code sample for iOS and Android that helps you connect BLE devices via a mobile app into IoT Central. You can modify the sample to just send device telemetry instead of BLE data. Take a look at the sample code here: https://github.com/iot-for-all/iotc-cpm-sample

这篇关于我们如何将Android/iOS应用程序连接到Azure IoT中心并发送遥测数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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