rickmcguire / IoTCentralDevice

Sample C# UWP project to simulate a temperature device and send telemetry data to IoT Central.
0 stars 0 forks source link

Problem to run dps_cstr.exe and obtain the Connection String. #1

Open EK76 opened 5 years ago

EK76 commented 5 years ago

Hi!

I get these errors when I try to run dps_cstr with Scope ID, Device ID and Primary Key values obtained from the device created in IoT Central Portal.

C:\Users\Admin\AppData\Roaming\npm\node_modules\dps-keygen\bin\windows\dps_cstr>dps_cstr 0ne0006C0DC 1ny20qk vHQ/bziJywJ+PWoRiPSqBbtfrXVPLq/Ers21F+eTGWrRmtFAVnYSewjCFJlJSm0RodOhEJvkEgpV3SikX+UPew== .Error: Time:Tue Jul 30 11:16:32 2019 File:C:\azure-iot-sdk-c\provisioning_client\src\prov_device_ll_client.c Func:_prov_transport_process_json_reply Line:300 failure retrieving json auth key value Error: Time:Tue Jul 30 11:16:32 2019 File:C:\azure-iot-sdk-c\provisioning_client\src\prov_transport_mqtt_common.c Func:_prov_transport_common_mqtt_dowork Line:944 Unable to process registration reply. Error: Time:Tue Jul 30 11:16:32 2019 File:C:\azure-iot-sdk-c\provisioning_client\src\prov_device_ll_client.c Func:_on_transport_registration_data Line:510 Failure retrieving data from the provisioning service Failure encountered on registration PROV_DEVICE_RESULT_PARSING

What could be wrong with this issue?

rickmcguire commented 5 years ago

No, have not seen this one.

Sent from my iPhone

On Jul 30, 2019, at 5:24 AM, EK76 notifications@github.com wrote:

Hi!

I get these errors when I try to run dps_cstr with Scope ID, Device ID and Primary Key values obtained from the device created in IoT Central Portal.

C:\Users\Admin\AppData\Roaming\npm\node_modules\dps-keygen\bin\windows\dps_cstr>dps_cstr 0ne0006C0DC 1ny20qk vHQ/bziJywJ+PWoRiPSqBbtfrXVPLq/Ers21F+eTGWrRmtFAVnYSewjCFJlJSm0RodOhEJvkEgpV3SikX+UPew== .Error: Time:Tue Jul 30 11:16:32 2019 File:C:\azure-iot-sdk-c\provisioning_client\src\prov_device_ll_client.c Func:_prov_transport_process_json_reply Line:300 failure retrieving json auth key value Error: Time:Tue Jul 30 11:16:32 2019 File:C:\azure-iot-sdk-c\provisioning_client\src\prov_transport_mqtt_common.c Func:_prov_transport_common_mqtt_dowork Line:944 Unable to process registration reply. Error: Time:Tue Jul 30 11:16:32 2019 File:C:\azure-iot-sdk-c\provisioning_client\src\prov_device_ll_client.c Func:_on_transport_registration_data Line:510 Failure retrieving data from the provisioning service Failure encountered on registration PROV_DEVICE_RESULT_PARSING

What could be wrong with this issue?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

EK76 commented 5 years ago

Hi! I have created an simulated device and used the following values (Scope ID, SAS Primary Key and Device ID) that I obtained from device in Azure IoT Central.

scope_LI key_LI device_LI

Can someone confirm if I have obtained the right values and created simulated device correctly for this project?