pymodbus icon indicating copy to clipboard operation
pymodbus copied to clipboard

Add support for hex values in REPL client.write_registers

Open rdiez opened this issue 4 years ago • 2 comments

Modbus registers are 16-bit and sometimes it is easier to understand their values when expressed in hex.

However, in the REPL tool "pymodbus.console", it looks like you cannot use hex for the values:

client.write_registers unit=1 address=9 values=0x0331 ValueError("invalid literal for int() with base 10: '0x0331'")

It would be nice if you could use hex like depicted above.

rdiez avatar Apr 30 '21 07:04 rdiez

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jun 02 '21 04:06 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Jun 08 '21 03:06 github-actions[bot]

Shall be trivial, PR #1043

pkubanek avatar Aug 17 '22 16:08 pkubanek