如何从DPS配置的下游设备连接透明Edge网关? [英] How to connect transparent Edge gateway from DPS provisioned downstream device?

查看:79
本文介绍了如何从DPS配置的下游设备连接透明Edge网关?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个运行IoT C SDK的下游设备;它通过DPS配置TPM身份验证。在配置结束时,我在回调中收到了iothub_uri和device_id;我可以连接到具有功能的设备IoTHubDeviceClient_LL_CreateFromDeviceAuth
没有问题。

I have a downstream device running IoT C SDK; and it is being provisioned via DPS with TPM authentication. By the end of provisioning I received iothub_uri and device_id in callback; and I can connect to the device with function IoTHubDeviceClient_LL_CreateFromDeviceAuth without problem.

但是当我想通过透明的IoT Edge网关中继遥测数据时出现了问题。根据IoT Edge文档,我会附加一个"GatewayHostName =<>"在连接字符串的末尾并调用函数  IoTHubDeviceClient_LL_CreateFromConnectionString。

However problem arose when I wanted to relay the telemetry data via a transparent IoT Edge gateway. According to IoT Edge documentation, I would have appended a "GatewayHostName=<>" at the end of connection string and call the function IoTHubDeviceClient_LL_CreateFromConnectionString.

但是我没有来自DPS的连接字符串,而是iothub_uri和device_id。那么在这种情况下我们如何提供Edge网关信息呢?

However I didn't have a connection string from DPS, but iothub_uri and device_id. So how do we provide Edge gateway information in this case?

推荐答案

yanghua.que - 这不是我们的情景今天可以支持。但这是我们希望在短期内实现的目标。
yanghua.que - this not a scenario we can support today. But it is something we want to enable in the near term.


这篇关于如何从DPS配置的下游设备连接透明Edge网关?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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