Skip to main content

Azure IoT EdgeHub Dev Tool Build Status

The Azure IoT EdgeHub Dev Tool provides a local development experience with a simulator for creating, developing, testing, running, and debugging Azure IoT Edge modules and solutions.

The simulator allows you to run, test and debug your own custom IoT Edge modules locally, without the IoT Edge Runtime, and with the following benefits:

  • Your custom Edge module code is the same whether running on the simulator or the full IoT Edge Runtime.
  • Your Edge solution can be run locally without the need to push new images or create IoT Edge deployment manifests.
  • The only credential required to run your Edge solution on the simulator is the IoT Edge Device Connection String. The IoT Hub Connection String is not needed.
  • It helps you debug your custom Edge modules on the host and not just in the container.

The following table compares the requirements to run your solution on the IoT Edge Runtime and iotedgehubdev tool:

IoT Edge Runtime iotedgehubdev
Device Credential Needed YES YES
IoT Hub Credential Needed YES NO
Build Image YES YES
Push Image YES NO
Create Deployment YES NO
Support native debug scenario NO YES

Installing

  1. Install Docker CE (18.02.0+) on Windows, macOS or Linux

  2. Install Docker Compose (1.20.0+) (Linux only. Compose has already been included in Windows/macOS Docker CE installation)

  3. Install Python (3.5/3.6/3.7/3.8/3.9) and Pip

  4. Install iotedgehubdev by running the following command in your terminal:

    pip install --upgrade iotedgehubdev
    

    Note: Please install iotedgehubdev to root on Linux/macOS (Don't use '--user' option in the 'pip install' command).

Please make sure there is no Azure IoT Edge runtime running on the same machine as iotedgehubdev since they require the same ports.

Quickstart

1. Setup

Windows
iotedgehubdev setup -c "<edge-device-connection-string>"
Linux/macOS
sudo iotedgehubdev setup -c "<edge-device-connection-string>"

2. Start/Stop an IoT Edge solution in simulator

Windows
iotedgehubdev start -d <path/to/deployment-manifest>
iotedgehubdev stop
Linux/macOS
sudo iotedgehubdev start -d <path/to/deployment-manifest>
sudo iotedgehubdev stop

3. Start and debug a single module natively

  1. Start the module with specific input(s) and/or environment variable(s)

    Windows
    iotedgehubdev start -i "<module-inputs>"
    
    // OR
    
    iotedgehubdev start -i "<module-inputs>" -e "<environment-variable>"
    
    Linux/macOS
    sudo iotedgehubdev start -i "<module-inputs>"
    
    // OR
    
    sudo iotedgehubdev start -i "<module-inputs>" -e "<environment-variable>"
    

    For example:
    iotedgehubdev start -i "input1,input2" -e "TestEnv1=Value1" -e "TestEnv2=Value2"

  2. Output the module credential environment variables

    iotedgehubdev modulecred
    
  3. Start your module natively with the environment variables from the previous step

  4. Send a message to your module through the RESTful API

    For example:
    curl --header "Content-Type: application/json" --request POST --data '{"inputName": "input1","data": "hello world"}' http://localhost:53000/api/v1/messages

  5. Stop the simulator

    Windows
    iotedgehubdev stop
    
    Linux/macOS
    sudo iotedgehubdev stop
    

Other resources

Data/Telemetry

This project collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. If you don’t wish to send usage data to Microsoft, you can change your telemetry settings by updating collect_telemetry to no in the ini file.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Release files for iotedgehubdev 0.14.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iotedgehubdev 0.14.12
File Size Uploaded
iotedgehubdev-v0.14.12-win32-ia32.zip 23.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for iotedgehubdev 0.14.12
File Interpreter ABI Platform
iotedgehubdev-0.14.12-py3-none-any.whl Python 3 none any Details

Total release size: 23.8 MB

Release files / iotedgehubdev-v0.14.12-win32-ia32.zip

Download URL iotedgehubdev-v0.14.12-win32-ia32.zip
Size 23.7 MB
Tags Source
SHA-256 checksum
How to use checksums
0c332b9d8eac7ea86b68e8c0dd2f60a9fc971f2e79a5e63e77393082749e8043
BLAKE2b-256 checksum
How to use checksums
dbba7aa9b5dcc4985d0b1ea550d493adb7c9c3a9642f5554be642989ca2cce12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

Release files / iotedgehubdev-0.14.12-py3-none-any.whl

Download URL iotedgehubdev-0.14.12-py3-none-any.whl
Size 38.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e29ecde4cfb1d3cb03bbdbdeac583babb871e3836e606d9daf59e5c3d6d4672b
BLAKE2b-256 checksum
How to use checksums
d7da1511db1fd71344d76f4742d4920da361979a44616510af98b46b81458587
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

Release history Release notifications | RSS feed

This release

0.14.12 This release

2 release files

0.14.10

1 release file

0.14.9

1 release file

0.14.8

1 release file

0.14.6

1 release file

0.14.5

1 release file

0.14.3

1 release file

0.14.2

1 release file

0.14.1

1 release file

0.14.0

1 release file

0.13.0

1 release file

0.12.0

1 release file

0.11.1

1 release file

0.11.0

1 release file

0.10.0

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page