AMQP is considered to be a secure and reliable IoT protocol; it is also an advanced protocol. AMQP is mostly used in business messaging. AMQP works well for enterprise applications and server-to-server communication.
Advanced Message Queuing Protocol (AMQP)
How to do it...
We will create a simulator application to ingest messages using AMQP protocol:
- Create a device simulator to send a message to IoT Hub:
deviceClient = DeviceClient.CreateFromConnectionString("HostName=IoTHubCookBook.azure-devices.net;DeviceId=myFirstDevice;SharedAccessKey=XXXXXXXXXXXXX", TransportType.Amqp);
new DeviceSimulator().SendDeviceToCloudMessagesAsync(deviceClient, "myFirstDevice");
- Send IoT Hub messages using AMQP:
public...