Azure-Samples / azure-iot-samples-csharp

Provides a set of easy-to-understand samples for using Azure IoT Hub and Azure IoT Hub Device Provisioning Service and Azure IoT Plug and Play using C# SDK.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Device stream sample with HTTP goes in while loop

prasanndutt87 opened this issue · comments

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x ] feature request
- [x ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

run device streaming SSH samples with HTTP (http1) protocol

Any log messages given by the failure

Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...
Waiting again...

Expected/desired behavior

It should work same as MQTT or AMQP protocol

OS and Version?

Windows 10

Versions

Windows 10 pro

Mention any other details that might be useful

We need device & service stream to work with HTTP protocol. Our all Azure IoT Hub agent is written for HTTP protocol by default. After program device stream program modification for http protocol, it goes in while loop of RunSampleAsync. I am sure it is happening because of cancellation token. Is device stream not possible with Http protocol?


Thanks! We'll be in touch soon.