-
-
Save fzankl/fd0e6a43b2c3294cbf9b0d38b30d7e96 to your computer and use it in GitHub Desktop.
Starting device stream request using Azure IoT Hub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var serviceClient = ServiceClient.CreateFromConnectionString( | |
serviceConnectionString, | |
TransportType.Amqp); | |
var deviceStreamRequest = new DeviceStreamRequest("ServiceStream"); | |
var result = await serviceClient.CreateStreamAsync( | |
deviceId, | |
deviceStreamRequest, | |
cancellationTokenSource.Token).ConfigureAwait(false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment