I use Azure IoT HUB and I want connect to device and send/receive messages.
First of all I generate SaS token and connect to IoT HUB.
After this I create new device: create new certificate get thumbprint and set this thumbprint to new device.
At last I use certificate and connect to device via AMQP. But get error after attaching:
amqp:unauthorized-access
In attach packet target address is "devices/{device-id}/messages/events"
What's wrong? Why I get this error?