I would like to receive IOT Hub messages from an endpoint. With client side Javascript and REST.
I used this article https://msdn.microsoft.com/nl-nl/library/mt590786.aspx for creating the URL.
This is my code:
function readIOTHub()
{
$.getJson("https://MyIOTHub.azure-devices.net/devices/device1/messages/devicebound?api-version=2016-02-03", function(result)
{
alert(result);
});
}
But my Request is not receiving any messages. Does someone know how to receive messages from IOT Hub, with Javascript REST?