Device Simulation solution accelerator overview
In a cloud-based IoT solution, your devices connect to a cloud endpoint to send telemetry such as temperature, location, and status. Your solution consumes this telemetry, enabling you to take actions or derive insights from it.
When you develop an IoT Solution, experimentation and testing are essential parts of that process. Simulation is an important tool throughout this process. With Device Simulation you can:
- Quickly get a prototype up and running and then iterate by adjusting simulated device behavior on the fly. This process lets you prove out the idea before investing in costly hardware. You can create custom devices through the web UI to generate a prototype device in seconds.
- Scale test your solution by simulating normal, peak, and beyond peak load conditions. Scale tests also help you to right size the Azure resources needed to run your solution.
You can run simulations for one to thousands of devices connecting to any IoT hub. To help with testing, you can optionally deploy an IoT hub along with Device Simulation for a standalone environment.
Device Simulation is free. However, Device Simulation deploys to your Azure subscription in the cloud and does consume Azure resources. If Device Simulation doesn't meet your requirements, the source code is also available on GitHub for you to copy and modify.
When you deploy Device Simulation, you get some sample simulations and sample devices. You can use these samples to learn how to use Device Simulation. To get started, run a sample simulation. You can also create your own simulation using one of the many sample devices provided.
Custom simulated devices
You can use the Device Simulation to create custom device models to use in your simulations. For example, you could define a new refrigerator device model that sends temperature and humidity telemetry. Custom simulated devices are ideal for simple device behaviors with random, incrementing, or decrementing telemetry values.
Advanced simulated devices
Advanced device models let you:
- Specify the message format sent from the device along with the telemetry types.
- Use custom scripting to generate telemetry values that maintain state of the device over time.
- Use custom scripting to specify how the simulated device responds to methods.
In this article, you learned about the Device Simulation solution accelerator and its capabilities. To deploy the solution accelerator, visit the GitHub repository: