Skip to content

minval and maxval for float32 in simulator #1658

@RyIot3329

Description

@RyIot3329

Versions

  • Python: Python 3.9.2
  • OS: Debian 11
  • Pymodbus: dev

Pymodbus Specific

  • Server: tcp - Simulator

Description

I have this defined in my json file for the simulator.

    {
      "addr": [7, 8],
      "value": 72.0,
      "action": "random",
      "kwargs": { "minval": 65.0, "maxval": 78.0 }
    }

It does not seem to follow the minval and maxval values from what I can see. I am getting random Float values, so that works. But it isn't in between the bounds. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions