Hi,
I try to get a list of devices from my IoT hub using the REST API and the URL https://{IoTHubName}.azure-devices.net/devices?top={top}&api-version={api-version} that I got from there https://msdn.microsoft.com/en-us/library/azure/mt548490.aspx
When I do the request I get 401 and the message "IOT hub does not correspond to host name", what does it mean? I gues it is something wrong with my access token, but I can not figure out what it is.
Thanks!