Created
January 24, 2021 13:06
-
-
Save fzankl/fb060631b665af159fab99f41455df72 to your computer and use it in GitHub Desktop.
Waiting for an incoming device stream request from 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 deviceClient = DeviceClient.CreateFromConnectionString( | |
deviceConnectionString, | |
TransportType.Amqp_WebSocket_Only); | |
var streamRequest = await deviceClient.WaitForDeviceStreamRequestAsync( | |
cancellationTokenSource.Token).ConfigureAwait(false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment