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

Adds support for remote serial ports. #6

Merged
merged 2 commits into from
Aug 15, 2019
Merged

Adds support for remote serial ports. #6

merged 2 commits into from
Aug 15, 2019

Conversation

legacycode
Copy link
Contributor

Hi, it would be great to have remote serial ports also included in this library. With this PR i added a factory that checks the prefix of the port property. If the port starts with "rfc2217://" it will use the RFC2217 implementation of serial else the serial port implementation. I have testet this with ser2net and the following config line:

2000:telnet:0:/dev/ttyS0:9600 remctl banner

You can then run the following command from the client command line:

pylacrosse -d rfc2217://192.168.0.1:20001 scan

I am not a python developer. Feel free to change this code :-)

@legacycode
Copy link
Contributor Author

Maybe this is also an alternative to #5

@coveralls
Copy link

coveralls commented Aug 14, 2019

Coverage Status

Coverage decreased (-0.5%) to 78.358% when pulling 0bc97b0 on legacycode:add-remote-serial-factory into d588e68 on hthiery:master.

@hthiery
Copy link
Owner

hthiery commented Aug 15, 2019

looks good so far ... could you please add a note in the README to make this new feature visible

@legacycode
Copy link
Contributor Author

legacycode commented Aug 15, 2019

I removed the unused import and added documentation. Hopefully it is clear to understand. It would be great, if you update your homeassistant component as well :-)

@hthiery hthiery merged commit 2fd9093 into hthiery:master Aug 15, 2019
@hthiery
Copy link
Owner

hthiery commented Aug 18, 2019

Just published a new version (0.4) of the lib. Don't know when I have the time to update it in homeassistant. Maybe you're interested in doing that? Please feel free.

@legacycode
Copy link
Contributor Author

Done with PR: home-assistant/core#26088

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

Successfully merging this pull request may close these issues.

3 participants