Skip to content

fzankl/iot-hub-devicestreams-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Azure IoT Hub - DeviceStreams Sample

Example how to work with Azure IoT Hub Device Streams


This example shows how to work with Azure IoT Hub - Device Streams when using SSH to connect to a IoT device via Internet/IoT Hub.

DeviceProxy represents local proxy for IoT device which acts as client for the local SSH daemon. It's responsible for authenticating against IoT Hub as well as creating a WebSocket connection to streaming endpoint of Azure IoT Hub.

ServiceProxy represents proxy for service which acts as a server for a local SSH client. It's responsible for authenticating against IoT Hub as well as creating a WebSocket connection to streaming endpoint of Azure IoT Hub.

DeviceProxy and ServiceProxy communicates with each other using created WebSocket via streaming endpoint of Azure IoT Hub.

Further information: https://www.fzankl.de/en/blog/remote-access-for-iot-devices-using-azure-iot-hub

How to run this sample

To run this example you have to provide valid IoT Hub configuration via launchSettings.json for DeviceProxy and ServiceProxy.