【问题标题】:how to include external libraries to arduino extension?如何将外部库包含到 arduino 扩展中?
【发布时间】:2019-11-15 10:29:32
【问题描述】:

pnp_device.h:10:42:致命错误:digitaltwin_device_client_ll.h:否 这样的文件或目录

我正在使用 arduino 和 azure iot 工具来使用 azure iot 即插即用功能。 我使用 vscode azure iot 工具生成了即插即用代码存根,但是在上传代码时出现了上述错误。 由于缺少的文件在外部库(Azure-iot-sdk-c)中,我尝试在 c_cpp_properties.json 中添加它的路径,即使错误仍然存​​在。 我想知道为什么会这样? 我需要一些帮助...

【问题讨论】:

  • 您使用的 arduino sdk 是什么?在尝试使用 arduino 之前,您是否从文档中成功完成了 one of the quickstarts?也明白Azure IoT Device Workbench does not support generic Arduino devices.
  • 我已经完成了 iot Central 的快速入门,只需将 .bin 文件拖放到 mxchip 即可。我已经编写了一个设备功能模型并使用 pnp 代码生成创建了一个代码存根现在我正在尝试使用 arduino 扩展将该代码上传到 mxchip 这个错误“pnp_device.h:10:42: fatal error: digitaltwin_device_client_ll.h: No such文件或目录”即将到来,我也尝试使用面临同样错误的工作台上传它

标签: vscode-settings vscode-extensions azure-iot-hub azure-iot-sdk


【解决方案1】:

我们有专门用于 PNP 的 devkit SDK。您可以关注readme 更改SDK版本。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-01
    • 2012-05-23
    • 2014-06-06
    相关资源
    最近更新 更多