Skip to content

Multiple slaves with RTU #127

@AareAa

Description

@AareAa

hello, how to work with multiple slaves RTU, e.g. 1,2,3? After initialising port with calling Serial(), got connection an reads (and writes) with slave_id=1 ok. Putting slave_id=2 and slave_id=3 don't work, something get messed, wrong answers. Only way is to init new Serial(), but sometimes "could not open port 'COM7': PermissionError(13, 'Access is denied.', None, 5)". Have to reset COM port/USB device. So looking way to change slave without new Serial()? There seems to be no function setID()...

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