Skip to content

set wokwi-gas-sensor's ppm in diagram.json doesn't work #209

Description

@trustedinster

My project needs to start with simulation ppm 100,so I'm trying to set a default value to wokwi-gas-sensor,here's a part of my diagram.json:

{
      "type": "wokwi-gas-sensor",
      "id": "smoke1",
      "top": -54.9,
      "left": 525.4,
      "attrs": {"ppm": "100"}
    },
    {
      "type": "wokwi-gas-sensor",
      "id": "smoke2",
      "top": 21.9,
      "left": 525.4,
      "attrs": { "ppm": "100" }
},

This doesn't work.When I start simulation,it changes to 400 ppm(Default value) docs

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions