c - Intel Edison 上的 Azure IoT 中心和 MRAA

标签 c azure makefile iot intel-edison

目前,我必须将 Intel Edison 上收到的传感器数据发送到 Azure IoT 中心。我有来自物联网工作的样本和接收数据的传感器,但连接两者并没有真正成功。

我尝试合并来自 Azure IoT 中心的示例中传感器的代码(此一个: https://github.com/Azure/azure-iot-sdks/blob/master/c/iothub_client/samples/iothub_client_sample_http/iothub_client_sample_http.c )

但是这个文件有一个复杂的 make 文件,我似乎无法包含我的 MRAA 引脚库 ( Low Level Skeleton Library for IO Communication on GNU/Linux platforms )。

有没有办法包含 MRAA 库或简单的 IoT 示例,我可以轻松修改而无需这个庞大而复杂的 make 文件。

最佳答案

我将“mraa”添加到 CmakeLists.txt 文件中的 target_link_libraries() 部分。

这会将库添加到文件中!

关于c - Intel Edison 上的 Azure IoT 中心和 MRAA,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37346397/

相关文章:

c - 不确定我理解这一行 : "struct x {void (*y)(struct x *z);}"

C 段错误结构/指针

unit-testing - 为什么我的 NUnit 断言在部署到 Azure 时失败?

azure - Cosmos DB - 多区域集合的一致性级别

makefile - 配方中的立即变量扩展

emacs - GNU make yield “commands commence before first target”错误

c - 在 C 中编辑文件的特定行

c - C 语言入门

sql-server - Azure sql跨数据库触发器

git - 确保已生成但 checkin 的文件在 git 同步后不会重建