Working out some evening and weekend code to see if I can get an azure IOT hub working.
thermostat.py
is just like the sensor example in the MSFT docs, but simplified and actually works.
key_thermostat1.yaml
should contain the key that you got from the azure portal.
Looks like this:
connection_string: HostName={your hostname};DeviceId={id};SharedAccessKey={access key}
I'm using anaconda so you should be able to build the environemnt in any system with:
conda env create --file=environment.yaml