-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
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
ReceiveMessageCallback works with sendeventasync only #8
Comments
Hello Andrei Porumb, Actually our application has standalone sendto and receivefrom to/fro from cloud Do you have any idea of handling this type of scenario?Also the iotHubClientHandle I kept it global and never destroying it on every transaction. Also wanted to know like can we create multiple handles for send and receive on same connection string ? |
Hello sarangkalbande, I am happy to hear it is working now. I will try to address your questions. If you want to restrict receiving from the cloud, then you need to call IoTHubClient_LL_SetMessageCallback(iotHubClientHandle, NULL, NULL); (notice the second parameter, the callback, is I believe we do not have an explicit way to restrict sending, that is, if the code call It is perfectly fine (and actually recommended) to keep Having multiple concurrent handles for sending and receiving on the same connection string is errr... not recommended. There are reasons for that, and I will mention here two of them which should make it obvious why it is not recommended:
Best Regards, I will also close this GitHub issue because I consider the initial issue has been addressed. |
…mple Added HTTP proxy configuration for device local proxy sample.
Hi All,
I am facing one issue with C SDK,
My requirement is sendingTo and receiveFrom IOTHub should work independently.
But when I verify with sample code unless i send some message to IOT hub receive call back is not invoking.
how can we achieve this behavior using IOT hub client library calls?
The text was updated successfully, but these errors were encountered: