gpt4 book ai didi

node.js - NodeJS - MS Azure 物联网

转载 作者:太空宇宙 更新时间:2023-11-03 22:12:13 24 4
gpt4 key购买 nike

我对 Azure IoT Hub 进行了一些研究,并惊喜地发现它没有适用于 Objective C 的 SDK。

您建议我们如何解决这个问题?

一种选择可能是:

1) 使用 NodeJS 创建我们自己的 Web 服务器。

2) 使用 Azure IoT NodeJS SDK 将我们的 Web 服务器与 Azure IoT 连接。

3) 然后,我们将创建 Web 服务 (API) 以将手机(Android、iOS)与 Web 服务器连接,进而连接到 Azure IoT?

所以整个过程会是这样的:

• User wants to see his profile ( assume that the profile is stored in one of the tables in SQLAzure ).

• He taps on the "Profile" Button.

• API (most probably REST API) call is made from Mobile to web server on "Profile" Button tap.

• Our web server will then talk to Azure and do the necessary fetching and return the data to the mobile in JSON format.

• We will then parse this information at our end and display it to the user.

我们希望使用上述场景实现独立于最终用户手机操作系统。这也将帮助我们使我们的应用程序变得轻量级,并且前提是我们不将 Azure SDK 添加到我们的应用程序包中,而是通过 Web 服务器访问它们。

希望这是正确的方法。如果有更好的方法来做同样的事情,请告诉我。

期待您的来信。

有人建议我使用 Azure 移动服务 SDK,但我担心它不允许我利用 Azure IoT 中心 SDK 中存在的命令。

再说一遍,我可能完全错了,也许我不需要直接在手机上调用物联网。也许我只需要我的手机来显示从 Azure 推送和拉取的数据。

有 Azure 专家吗?帮助!!!

最佳

最佳答案

您是否正在考虑将 Objective-C 代码与适用于 C 的 azure IoT SDK 混合?您最终可能会围绕 c 创建一些简单的 Objective-C 包装类,并以最小的努力仅公开您可能需要的必要 API。

关于node.js - NodeJS - MS Azure 物联网,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39117114/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com