MXChip not connecting to IoT Hub

Samuel 1 Reputation point
2021-08-16T07:22:54.403+00:00

I am following the Azure MXChip Get Started guide but am not able to connect the device to IoT Hub.
https://learn.microsoft.com/en-us/samples/azure-samples/mxchip-iot-devkit-get-started/sample/

configuration-ui.png

I have tried the connection string for both the device and iothubowner however neither work.
The device after rebooting just has the text Running... > IoT Hub.

HostName=my-hub-name.azure-devices.net;DeviceId=MXChip-Dev;SharedAccessKey=STRING=

HostName=my-hub-name.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=STRING=

I can't see the device inside IoT Hub.

As this was last updated July 2020, has there been changes to the way the device needs to connect or do I need to set up any type of permissions for the device in IoT Hub?

Thanks.

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
401 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,201 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 34,616 Reputation points
    2021-08-16T13:59:47.617+00:00

    @Samuel Welcome to Microsoft Q&A forum!

    Documentation works as expected. Could you confirm, if you have registered a device and got the connection string as per the documentation?

    Below is an example of the device connection string.

    HostName={YourIoTHubName}.azure-devices.net;DeviceId=MyNodeDevice;SharedAccessKey={YourSharedAccessKey}

    You have mentioned, I can't see the device inside IoT Hub. where are you looking for the device?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.