https://github.com/deviceinsight/iot-hub-device-stream-proxy
Builds a docker image for an IoT Hub device stream proxy on the device side
https://github.com/deviceinsight/iot-hub-device-stream-proxy
Last synced: 12 months ago
JSON representation
Builds a docker image for an IoT Hub device stream proxy on the device side
- Host: GitHub
- URL: https://github.com/deviceinsight/iot-hub-device-stream-proxy
- Owner: deviceinsight
- License: apache-2.0
- Created: 2020-07-24T14:19:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-24T16:01:41.000Z (almost 6 years ago)
- Last Synced: 2025-04-06T15:43:16.990Z (over 1 year ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iot-hub-device-stream-proxy
This builds a Docker image for trying the Device Streams feature of Azure IoT Hub.
You can use it for starting a local proxy on the device side and for a service proxy.
It is based on the following guide: https://docs.microsoft.com/en-us/azure/iot-hub/quickstart-device-streams-proxy-csharp
The advantage of using this Docker image is that you do not have to install .NET locally.
## Usage
Let's say you have created a device with the device ID `test-device` on an Device Streams enabled IoT Hub.
Start device proxy:
```
docker run --net=host -ti --rm deviceinsight/iot-hub-device-stream-proxy device \
"HostName=device-stream-test.azure-devices.net;DeviceId=test-device;SharedAccessKey=xxx" \
127.0.0.1 22
```
Start the service proxy:
```
docker run --net=host -ti --rm deviceinsight/iot-hub-device-stream-proxy service \
"HostName=device-stream-test.azure-devices.net;SharedAccessKeyName=service;SharedAccessKey=xxx" \
test-device 2000
```
Assuming you have an SSH server running locally, you should be able to connect to it via the device streams tunnel:
```
ssh 127.0.0.1 -p 2000
```