Please fork, branch and pull-request any changes you'd like to make.
-
Clone or Fork this Repository
git clone https://github.com/azure/iotedgedev.git
-
Rename
.env.tmp
in the root of the repo to.env
and set theIOTHUB_CONNECTION_STRING
andDEVICE_CONNECTION_STRING
values to settings from your IoT Hub and Edge Device. To set these values you could runiotedgedev azure
in the root of the repo. -
Install Microsoft Visual C++ Build Tools
-
Run
npm install
from the root directory to install the required npm packages for iothub-explorer calls. -
Install OpenSSL 1.1.0g
- Windows
- Download from OpenSSL's website
- Extract the downloaded .tar.gz to C:\OpenSSL\
- Windows
-
Make sure both Python 2.7 and Python 3.6 are installed
-
Install dependencies
Run the following command to install all the dependencies needed to build iotedgedev and run the tests.
pip install -r requirements_dev.txt
-
Editable Mode
Run the following command from the root of the IoT Edge Dev Tool Solution to see changes to iotedgedev commands as you change code.
pip install -e .
VS Code Debugging works only with Python 3.6 VS Code Python Environments for now. Make sure that your VS Code Python Environment is pointing to Python 3.6
Set your CLI arguments in launch.json and hit F5
Run the following command to run tests.
tox