26.02.2019, 09:18
Duvan2127 has contacted Microsoft support in this matter. Here is a reply from MS. Maybe Duvan2127 can provide further comments or tests done for this?
Step 1 : Get Connection string from the tool. It will give to Hub name
Example
C:\Users\anhashia\AppData\Roaming\npm\node_modules\dps-keygen\bin\windows>dps_cstr 0ne000475B9 mydevice ********************
...
Registration Information received from service: iotc-3d8d214e-281d-454a-9c7d-259fd8bb49ed.azure-devices.net!
Connection String:
HostName=iotc-3d8d214e-281d-454a-9c7d-259fd8bb49ed.azure-devices.net;DeviceId=mydevice;SharedAccessKey=**************
Once you have connection string, you can put in IoT SDK and you are good to go,
https://docs.microsoft.com/en-us/azure/i...-telemetry
Step 2: Fill below paraments from Step 1 Example.
broker: iotc-3d8d214e-281d-454a-9c7d-259fd8bb49ed.azure-devices.net
port : 8883
device_id: mydevice
username: iotc-3d8d214e-281d-454a-9c7d-259fd8bb49ed.azure-devices.net/mydevice/api-version=2016-11-14
password: This you will need to generate https://docs.microsoft.com/en-us/azure/i...ity-tokens. It has code snippet.
Step #5, you need to write code to generate SAS token.
Step 1 : Get Connection string from the tool. It will give to Hub name
Example
C:\Users\anhashia\AppData\Roaming\npm\node_modules\dps-keygen\bin\windows>dps_cstr 0ne000475B9 mydevice ********************
...
Registration Information received from service: iotc-3d8d214e-281d-454a-9c7d-259fd8bb49ed.azure-devices.net!
Connection String:
HostName=iotc-3d8d214e-281d-454a-9c7d-259fd8bb49ed.azure-devices.net;DeviceId=mydevice;SharedAccessKey=**************
Once you have connection string, you can put in IoT SDK and you are good to go,
https://docs.microsoft.com/en-us/azure/i...-telemetry
Step 2: Fill below paraments from Step 1 Example.
broker: iotc-3d8d214e-281d-454a-9c7d-259fd8bb49ed.azure-devices.net
port : 8883
device_id: mydevice
username: iotc-3d8d214e-281d-454a-9c7d-259fd8bb49ed.azure-devices.net/mydevice/api-version=2016-11-14
password: This you will need to generate https://docs.microsoft.com/en-us/azure/i...ity-tokens. It has code snippet.
Step #5, you need to write code to generate SAS token.