Azure IoT中心Python库的API参考 [英] API Reference for Azure IoT Hub Python Library

查看:79
本文介绍了Azure IoT中心Python库的API参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

tl; dr python中IoT Hub MQTT消息传递类/方法的API参考在哪里?

tl;dr Where is the API reference for the IoT Hub MQTT messaging class/methods in python?

冗长的问题:似乎没有简单的API参考,并且上述问题的答案是代码是开源的,请阅读并弄清楚它是如何工作的.但是也许某个网页我在某处不见了. . .否则也许你至少可以 帮助我在您的github存储库中涉猎. IoTHubModuleClient()似乎很重要.那在哪里?似乎有一个send_event_async()方法,如何使用它?

Long Question: It seems there is no simple API reference and that the answer to the above question is the code is open source, read it and figure out how it works. But maybe there's a webpage I'm missing somewhere . . . Otherwise perhaps you could at least help me wade my way through your github repository. The IoTHubModuleClient() seems pretty important. Where is that located? It seems to have a send_event_async() method, how does one use it?

上下文:我正在使用IoT Edge实例.我遍历了Linux快速入门教程和使用自定义代码过滤数据教程.我有所有的工作.我可以使用VS Code插件监视设备以将消息云化.现在我会 喜欢修改过滤器代码以从头开始发送自定义消息,而不是转发来自传感器的消息.应该足够简单. . .

Context: I'm working with an IoT Edge instance. I have the gone through the Linux Quickstart tutorial and the Filter Data with Custom Code tutorial. I have all that workingl. I can monitor the device to cloud messages using the VS Code plugin. Now I would like to modify the filter code to send a custom message from scratch rather than forwarding the message from the sensor. Should be simple enough . . .

推荐答案

你好Jak_Quixote,

Hello Jak_Quixote,

当前在python中没有针对IoT中心MQTT消息传递类/方法的API参考.但是您可以在此处找到该存储库(

Currently there is no API reference for the IoT Hub MQTT messaging class/methods in python.But you can find the repo here(https://github.com/Azure/azure-iot-sdk-python/tree/master/device).

IoTHubModuleClient位于iothub_client库中( https://github.com/Azure/azure-iot-sdk-python/blob/master/device/iothub_client_python/src/iothub_client_python.cpp#L2110 ).

IoTHubModuleClient is in iothub_client library(https://github.com/Azure/azure-iot-sdk-python/blob/master/device/iothub_client_python/src/iothub_client_python.cpp#L2110).

最好的问候,

Michael


这篇关于Azure IoT中心Python库的API参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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