Introducing Python Library v1.7.2 for BleuIO
November 21, 2025
We are excited to announce the release of BleuIO Python Library v1.7.2, bringing improved compatibility, new features, and better performance for developers building Bluetooth-enabled applications with BleuIO.
This update supports the latest firmware versions — BleuIO Standard v2.7.9.29 and BleuIO Pro v1.0.4.14 — ensuring seamless integration with the newest hardware capabilities.
Important Note:
Python Library v1.7.2 does not support BleuIO Standard firmware 2.2.0 or earlier (SSD005).
Please update your dongle to use this library version.
What’s New in v1.7.2
Updated Command Functions
This release introduces expanded support for the latest AT commands shipped with BleuIO Standard v2.7.9.29.
New: ATAR Function
The library now includes a dedicated function for the newly introduced ATAR command, used to enable or disable auto-reconnect:
atar()
This addition offers developers more control over connection stability in dynamic environments.
Enhanced Polling Behavior
Several existing functions have been updated to align with the new status-polling behavior added in firmware v2.7.9.29.
The following command functions now automatically poll status when called without parameters:
ata()atasps()atassm()atassn()atds()ate()atew()atsiv()atsra()atsat()at_frssi()at_show_rssi()
This enhancement allows quicker and more intuitive status queries, reducing boilerplate code in your applications.
Improved Logging and Debugging
The library now uses Python’s built-in logging module instead of basic print statements, giving developers much finer control over how information is captured and displayed. This change improves the handling of debug output, warnings, and errors, and allows logging levels to be adjusted to suit different environments. It also enables smoother integration with larger applications that rely on structured logging. Overall, you can now tailor log visibility to match your debugging or production needs more effectively.
New Constructor Parameters
To improve flexibility and performance, three new parameters have been added to the library’s constructor:
w_timeout
Configures the write timeout for the serial port — useful when handling long operations or slower host systems.
exclusive_mode
Optional flag passed to PySerial to request exclusive access to the port.
This prevents other processes from interfering with communication.
rx_delay
Enables a short non-blocking sleep time in the RX thread when no bytes are available.
This improvement helps avoid busy-looping and reduces CPU load on some platforms.
Smarter RX Thread Behavior
Thanks to the new rx_delay parameter, the receive thread now behaves more efficiently when no incoming data is present.
This prevents unnecessary CPU usage while maintaining responsiveness.
Safer Thread and Exit Handling
This release includes more robust exit behavior:
- Improved
exit_handler - A safer SIGINT (Ctrl+C) handler, even when the library is used outside the main thread
These adjustments help ensure clean shutdowns and reduce the risk of hanging threads in complex applications.
Upgrade Recommended
Updating to Python Library v1.7.2 is quick and straightforward. If you already have a previous version installed, start by upgrading the package through pip. Run the following command in your terminal or development environment:
pip install --upgrade bleuio
This will fetch and install the latest version of the library.
Python Library v1.7.2 is a significant update that enhances functionality, stability, and performance — especially when used with the latest BleuIO firmware versions.
We recommend upgrading to take advantage of all new features.