i am trying to connect a raspberry pi to my IoT-Hub. I am using this tutorial: iot-hub-raspberry-pi-kit-node-get-started

but when i am this command: sudo node index.js '<YOUR AZURE IOT HUB DEVICE CONNECTION STRING>'

i get this Error: "mqtt.js returned Failure on first connection (Not authorized): Connection refused: Not authorized error"

I hope you can help me.

Thank you very much.

Hello @Jonas Trumpfheller ,

did you fill in your own specific IoT Hub Device connection string?

if looks like

HostName=mslearn.azure-devices.net;DeviceId=testdevice;SharedAccessKey=0iE[skipped big part]wY=  

You find it in the Azure Portal: