Skip to content

serial sync client is_socket_open method throws type error #302

@dhoomakethu

Description

@dhoomakethu

Versions

  • Python: 2.7/3+
  • OS: ALL
  • Pymodbus: 1.5.1
  • Modbus Hardware (if used): NA

Pymodbus Specific

  • Server: tcp/rtu/ascii - sync/async
  • Client: tcp/rtu/ascii - sync/async

Description

serial sync client is_socket_open method throws type error

Code and Logs

from pymodbus.client.sync import ModbusSerialClient as Client
c = Client(port="/dev/ttyp0")
c.is_socket_open()

TypeError: 'bool' object is not callable
 File "pymodbus/client/sync.py", line 532, in is_socket_open
    return self.socket.is_open()

'bool' object is not callable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions