Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyxcp/master/master.py the connect method cannot be called more than once #84

Open
nedlukasz opened this issue Nov 26, 2021 · 0 comments

Comments

@nedlukasz
Copy link

nedlukasz commented Nov 26, 2021

For now Master.connect method do two things setup transport layer (transport.connect()) and also invoke XCP command connect but it will be really nice to have possibility to invoke only XCP command.

There can be for example bool argument setup_transport_layer:

def connect(self, mode=0x00, setup_transport_layer=True):
    if setup_transport_layer:
	    self.transport.connect()
    response = self.transport.request(types.Command.CONNECT, mode & 0xFF)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant