Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.07 KB

File metadata and controls

37 lines (30 loc) · 1.07 KB

py-device-properties

This application will demonstrate Azure IoT hub message properties

requirements

python 3 pip bash

setup steps

create a python virtual environment (one time)

This step will create a virtual environment in the local directorty called .venv

python -m venv .venv

Source the virtual environment (every time you need the environment)

To source virtual environment

source .venv/bin/activate

This past step will add path to the virtual environment. You can deactivate with the following command:

deactivate 

Install requirements - after you have sourced environment (one time)

pip install -r requirements.txt

Rename env_set_example to env_set.sh (one time). Copy Connection String to this file(one time). Source this file (each time you need the environment )

Please note that Connection String is different than the SAS token. There is an example env set script provided: env_set_example, rename this file to env_set.sh ( this is ignored by git). Source this file:

source ./env_set.sh