Azure IoT EdgeHub Dev Tool
Project description
Azure IoT EdgeHub Dev Tool
Announcement
The Azure IoT EdgeHub Dev Tool is in a maintenance mode. Please see this announcement for more details. We recommend using VM, Physical devices or EFLOW.
Introduction
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
-
Install Docker CE (18.02.0+) on Windows, macOS or Linux
-
Install Docker Compose (1.20.0+) (Linux only. Compose has already been included in Windows/macOS Docker CE installation)
-
Install iotedgehubdev by running the following command in your terminal:
pip install --upgrade iotedgehubdev
-
Ensure the user is a member of docker user group (Linux / MacOS only):
sudo usermod -aG docker $USER
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
iotedgehubdev setup -c "<edge-device-connection-string>"
2. Start/Stop an IoT Edge solution in simulator
iotedgehubdev start -d <path/to/deployment-manifest>
iotedgehubdev stop
3. Start and debug a single module natively
-
Start the module with specific input(s) and/or environment variable(s)
iotedgehubdev start -i "<module-inputs>" // OR iotedgehubdev start -i "<module-inputs>" -e "<environment-variable>"
For example:
iotedgehubdev start -i "input1,input2" -e "TestEnv1=Value1" -e "TestEnv2=Value2"
-
Output the module credential environment variables
iotedgehubdev modulecred
-
Start your module natively with the environment variables from the previous step
-
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
-
Stop the simulator
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file iotedgehubdev-v0.14.18-win32-ia32.zip
.
File metadata
- Download URL: iotedgehubdev-v0.14.18-win32-ia32.zip
- Upload date:
- Size: 24.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82fa465595e14002ab0114ce6907d03d07f9883f2456498a6ae3d2b5125aa826 |
|
MD5 | fe73a485e1a55f253dfe89dba1e9736d |
|
BLAKE2b-256 | 4ce7927cad69d4534a12495b8a2731b648854828b5c4df3b5c10365ae42a17fe |
File details
Details for the file iotedgehubdev-0.14.18-py3-none-any.whl
.
File metadata
- Download URL: iotedgehubdev-0.14.18-py3-none-any.whl
- Upload date:
- Size: 38.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bcfbd0bc8a301ab9bb8358466d496127b1204e383ed6a448545c0d292204678 |
|
MD5 | d33570679f0315b7109e09bd5f0a0782 |
|
BLAKE2b-256 | a88bc6357f5d538c15a45262c641f6fc3827571d2c0ed217346db1435a67b567 |