MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.2k stars 21.35k forks source link

quickstart-create-pnp-device: server unavailable but not sure what to check #35873

Closed marrichamsft closed 5 years ago

marrichamsft commented 5 years ago

I am not sure where to look in local logs/azure portal to figure out why the device is not connecting

c:\tmp\azure-iot-sdk-c-pnp\cmake\pnp_app\sample_device\Release>sample_device.exe "HostName=contoso-test-hub-mgr.azure-devices.net;DeviceId=MyNodeDevice;SharedAccessKey=yVX7XsYESHhZU61N47362fnCR11SxtQ3TE9zlcArtLk=" Info: Successfully created DigitalTwin device with connectionString=<****>, deviceHandle=<000001E48FA0D370> Info: DigitalTwin Interface : Changing interface state on interface deviceinfo from DT_INTERFACE_STATE_UNINITIALIZED to DT_INTERFACE_STATE_CREATED Info: DEVICEINFO_INTERFACE: Created DIGITALTWIN_INTERFACE_CLIENT_HANDLE successfully for interfaceId=, componentName=, handle=<000001E48FA07480> Info: DigitalTwin Interface : Changing interface state on interface sensor from DT_INTERFACE_STATE_UNINITIALIZED to DT_INTERFACE_STATE_CREATED Info: SENSOR_INTERFACE: Created DIGITALTWIN_INTERFACE_CLIENT_HANDLE successfully for interfaceId=, componentName=, handle=<000001E48FA06BB0> Info: DigitalTwin Interface : Changing interface state on interface deviceinfo from DT_INTERFACE_STATE_CREATED to DT_INTERFACE_STATE_BOUND_TO_CLIENT_HANDLE Info: DigitalTwin Interface : Changing interface state on interface sensor from DT_INTERFACE_STATE_CREATED to DT_INTERFACE_STATE_BOUND_TO_CLIENT_HANDLE Info: Successfully queued registration message Error: Time:Thu Jul 25 14:21:11 2019 File:C:\tmp\azure-iot-sdk-c-pnp\iothub_client\src\iothubtransport_mqtt_common.c Func:mqtt_operation_complete_callback Line:1730 Connection Not Accepted: 0x3: Server Unavailable Error: Time:Thu Jul 25 14:21:11 2019 File:C:\tmp\azure-iot-sdk-c-pnp\iothub_client\src\iothubtransport_mqtt_common.c Func:mqtt_operation_complete_callback Line:1730 Connection Not Accepted: 0x3: Server Unavailable Error: Time:Thu Jul 25 14:21:13 2019 File:C:\tmp\azure-iot-sdk-c-pnp\iothub_client\src\iothubtransport_mqtt_common.c Func:mqtt_operation_complete_callback Line:1730 Connection Not Accepted: 0x3: Server Unavailable Error: Time:Thu Jul 25 14:21:17 2019 File:C:\tmp\azure-iot-sdk-c-pnp\iothub_client\src\iothubtransport_mqtt_common.c Func:mqtt_operation_complete_callback Line:1730 Connection Not Accepted: 0x3: Server Unavailable Error: Time:Thu Jul 25 14:21:25 2019 File:C:\tmp\azure-iot-sdk-c-pnp\iothub_client\src\iothubtransport_mqtt_common.c Func:mqtt_operation_complete_callback Line:1730 Connection Not Accepted: 0x3: Server Unavailable

CHEEKATLAPRADEEP-MSFT-zz commented 5 years ago

@marrichamsft Please help with the link of document on which above document feedback request is created.

In case your query in not related to document content, open a new forum thread in MSDN forum or Stack Overflow as it could be better place to get help on your scenario. These forum community members could provide their expert guidance on your scenario based on their experience. Thanks.

CHEEKATLAPRADEEP-MSFT-zz commented 5 years ago

@marrichamsft Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly reopen the issue and continue the discussion.