Azure / azure-iot-hub-vs-cs

Visual Studio extension to ease the use of the Azure IoT client SDK
Other
27 stars 16 forks source link

Simulating TPM on Raspberry 3 results in only deviceId being pulled out from TPM device #18

Closed mslot closed 5 years ago

mslot commented 6 years ago

Windows IoT v.10.0.16299.19 Raspberry Pi 3 TPM from: | MSFT - TPM Simulator Type: | Emulator(NoSecurity) Family: | 2.0 Revision: | 1.38 Firmware: | 8215.531.17.21504

I have provisioned the device successfully from the IoT Dashboard, and this is what I see when opening the TPM settings page

image

When i deploy my background task, it fails to retrieve all info from the TmpDevice but the device id. I am seeing this (including the portion of code doing the setup of the client:

image

I get an error because the sasToken is empty (obviously). Shouldnt I have gotten hostname, and sas token from the tmp device? Am I missing something obvious? Or is there a bug somewhere?

I have followed this write up: https://github.com/Azure/azure-iot-hub-vs-cs/wiki/Device-Provisioning-with-TPM

kalyanb9119 commented 6 years ago

Try adding different capabilities in your package.appxmanifest file.. I have added everything.. it works..

mpoeckl commented 6 years ago

@kalyanb9119 : that worked for me as well!