问题
I have successfully built azure-iot-sdk-python and I have managed to handle the device side of things:
- sending messages and reported-properties
- receiving messages and desired-properties
I can also manage devices from the service side:
- create devices, update devices
- delete devices
- manage device twins (setting tags, reading tags, setting desired-properties, getting reported-properties)
What I cannot find is how to access the Events (messages/events
) endpoint using azure-iot-sdk-python and read the messages sent by the devices. How do I do that?
来源:https://stackoverflow.com/questions/45006986/how-can-i-receive-from-azure-iot-hub-messages-sent-by-devices