A simulation includes several files and directories following a fixed structure:

  • simulation.json is the main simulation file. It includes the amount of devices to simulate and their profile. See Simulation configuration.

  • profiles directory contains files to define the behavior of simulated devices. Each file is a simulated device profile that can be used in your simulation.json. See Device profiles definition.

  • data_streams directory has files defining sets of data streams that can be referenced in your profiles. See Data streams structure.

  • device_requests directory includes files with sets of device requests to reference in your profiles. See Device request configuration.

  • fs directory contains sub-directories with the base file systems used in your profiles. See Device profiles definition.

  • routes directory have directories with routes for your simulated devices. See Routes for your devices.

  • simulation.py is an optional Python script only required if using device requests, data streams, location, or maintenance status managed by your custom code. See Custom code implementation.

Digi IoT Device Simulator structure