
Copy the generated SAS token connection string, you use this value later in the tutorial.Choose the Primary key to use as the Symmetric key, set the expiration time to 60 minutes, and select Generate.On the Device identity page, expand Connection string with SAS token.Create a device called my-mqtt-device that uses an autogenerated symmetric key.On the IoT hubs page, select View devices in this hub.You configured your IoT hub and the Azure IoT explorer tool when you completed Set up your environment for the IoT Plug and Play quickstarts and tutorials: Use the Azure IoT explorer tool to add a new device to your IoT Hub. Visual Studio (Community, Professional, or Enterprise) - make sure you include the Desktop Development with C++ workload when you install Visual Studio.To complete this tutorial on Windows, install the following software on your local Windows environment: Identify the MQTT topics that an IoT Plug and Play device uses.īefore you continue, make sure you've set up your environment, including your IoT hub.

Modify the C-based MQTT sample code to make the device an IoT Plug and Play device.Download and build the Eclipse Mosquitto library.
