Skip to content

Serial port reconfiguration API - #120

Merged
puddly merged 15 commits into
devfrom
puddly/reconfigure-api
Sep 27, 2026
Merged

puddly merged 15 commits into
devfrom
puddly/reconfigure-api

Conversation

@puddly

@puddly puddly commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Add reconfigure_port, an API to reconfigure serial port settings without needing to open/close the serial port. All platforms are supported (with a workaround for web/Pyodide), though only Windows and RFC2217 explicitly support changing individual settings and with Linux doing so implicitly via the kernel.

This API fully replaces the property setters for baudrate, data_bits, stop_bits, etc. and these APIs have been formally deprecated.

@codecov

codecov Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.44444% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.11%. Comparing base (642e2e0) to head (b62b93e).

Files with missing lines Patch % Lines
serialx/platforms/serial_win32.py 90.90% 4 Missing ⚠️
serialx/platforms/serial_esphome.py 80.00% 2 Missing ⚠️
serialx/common.py 98.66% 1 Missing ⚠️
serialx/platforms/serial_pyodide/__init__.py 97.91% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #120      +/-   ##
==========================================
+ Coverage   92.80%   93.11%   +0.31%     
==========================================
  Files          24       24              
  Lines        3890     4025     +135     
==========================================
+ Hits         3610     3748     +138     
+ Misses        280      277       -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@puddly
puddly merged commit e5d3ca3 into dev Sep 27, 2026
40 checks passed
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.

1 participant