-
Notifications
You must be signed in to change notification settings - Fork 492
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
DeviceClient ReceiveAsync doesn't work with Mqtt, Xamarin Android #249
Comments
Hi there - have you managed to make headway on the above? We are seemingly having the same problem. |
Thanks @FinitelyFailed and @acambitsis for reporting this. We didn't get a chance to look into this issue yet. |
Hi - I'm having this issue too. Any idea when there will be any progress on this? I'm not sure if its related, but problems I was having with Xamarin/Android and using PackageReference based projects when referencing Microsoft.Azure.Devices.Client (as mentioned in #197) appear to have been solved with the release of VS2017 15.5.4 (yesterday) |
I'm also seeing this. Latest visual studio 15.7.3, latest libraries (Devices.client 1.7.1). Able to build a release mode. AMQP works ok. MQTT just doesn't seem to send or receive. Here's my sending error - if someone can show me an easy way to get dotnetty logging running, I'm happy to add that as well.
|
Thanks for the feedback.This is currently in our backlog and will consider it as part of our planning cycle |
@FinitelyFailed, @acambitsis, @CIPop, @davidmaiden, @nrandell, @RubiaL, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey |
This is also not working under iOS. Same behavior as the original issue -- |
This issue is really old and seems to be working with the latest SDK and Visual Studio version. We also don't support Xamarin officially yet but if there are any other issues, please feel free to open a new one. |
Re-opening and closing to work around dashboard issue. |
Closing the issue. |
I have tried:
Xamarin.Forms Version 2.5.0.91635, but I have tried every version down to 2.3.
Microsoft.Azure.Devices.Client Version 1.4.0,1.5.0, 1.5.1,1.5.2 and 1.6.0-preview.
Description of the issue:
When I try to receive a message from the IOT-hub I do not get anything when I am using Mqtt, Http1 works fine as well as Amqp.
Code sample exhibiting the issue:
_iotDeviceClient = DeviceClient.CreateFromConnectionString(connectionString, transportType: TransportType.Mqtt);
_iotDeviceClient.ReceiveAsync().ContinueWith(task =>
{
if (!task.IsFaulted)
{
var msg = task.Result;
}
});
When I set a breakpoint on the if-statement and run the code on a device and send a message from the IOT-hub the breakpoint is never triggered. However if I use Http1 or Amqp it triggers. It seems to work fine on iOS and UWP but not on Android. A very few times it triggers but then the task has faulted with a timeout-exception.
The text was updated successfully, but these errors were encountered: