We will be creating a sample with which we will use the MQTT protocol to directly connect to the IoT Hub. The communication will be done using the public device endpoints for the MQTT protocol on port 8883. In the simulator part, we will be using the MQTT connect() packet call to make the connection with the device.