We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Team,
I am trying to use send_message method of the async IoTHubModuleClient class
# The client object is used to interact with your Azure IoT hub. module_client = IoTHubModuleClient.create_from_edge_environment() # Connect the client. await module_client.connect() async def send_test_message(i): print("sending message #" + str(i)) msg = Message("test wind speed " + str(i)) msg.message_id = uuid.uuid4() msg.correlation_id = "correlation-1234" msg.custom_properties["tornado-warning"] = "yes" await module_client.send_message(msg) print("done sending message #" + str(i))
i tried measuring the time taken for send_message and it is around 300 milliseconds. Is there a way to reduce this time ?
The text was updated successfully, but these errors were encountered:
@danudeep90, running IMx.93 platform with this sdk. I am seeing similar result from async version versus sync.
async
sync
~130ms
Sync
130ms to 1s
Async
Sorry, something went wrong.
No branches or pull requests
Hi Team,
I am trying to use send_message method of the async IoTHubModuleClient class
i tried measuring the time taken for send_message and it is around 300 milliseconds. Is there a way to reduce this time ?
The text was updated successfully, but these errors were encountered: