Skip to content

P4a beta test - #4

Open
xloem wants to merge 265 commits into
developfrom
p4a-beta-test
Open

P4a beta test#4
xloem wants to merge 265 commits into
developfrom
p4a-beta-test

Conversation

@xloem

@xloem xloem commented Oct 10, 2021

Copy link
Copy Markdown
Owner

Pull Request Guidelines for Bleak

Before you submit a pull request, check that it meets these guidelines:

  1. If the pull request adds functionality, the docs should be updated.
  2. Modify the CHANGELOG.rst, describing your changes as is specified by the
    guidelines in that document.
  3. The pull request should work for Python 3.6+ on the following platforms:
    • Windows 10, version 16299 (Fall Creators Update) and greater
    • Linux distributions with BlueZ >= 5.43
    • OS X / macOS >= 10.11
  4. Squash all your commits on your PR branch, if the commits are not solving
    different problems and you are committing them in the same PR. In that case,
    consider making several PRs instead.
  5. Feel free to add your name as a contributor to the AUTHORS.rst file!

dlech and others added 30 commits December 29, 2020 19:13
This makes sure we start fresh each time we restart a scanner.
This handles the case where an InterfacesRemoved signal is received
but the device hasn't been "seen" yet.

Fixes: hbldh#407
This add a new BleakDBusError type for wrapping D-Bus errors. It also
adds a utility function to check replies for errors. This will give
better information when we encounter an error.

Issue: hbldh#406
This fixes failed characteristic and descriptor writes when the data
argument is not already a bytes object. The low-level D-Bus API
requires strict typing.

Fixes: hbldh#408
* document exceptions raised for connect and disconnect methods
* include D-Bus object path in debug log messages
* protect against reentrancy in _cleanup_all() method
* rework disconnect method synchronization for ensuring everything was
  cleaned up properly
When GetManagedObjects returns without a org.bluez.Device1 interface at
the requested object path, then the connect method would already fail
before trying the org.bluez.Adapter1.ConnectDevice method. This moves
the fallback code so that we handle this case.

Also added interfaces_and_props local variable for improved type hints
while touching this code.
* adv_service_data

Co-authored-by: Jonathan <jonathan.Soto@polestar.eu>
and an example for kivy buildozer on android
Fix for pairing in .NET backend.
Protection levels added to Windows backend.
Added example with Philips Hue lamp.
Updated version and changelog.
)

Adding option to avoid using cached services in .NET backend.
Updated troubleshooting guide with some details about cached devices.
…' if not name. Updated BLEDevice.__str__ conditional to check not self.name instead of equality to 'Unknown'. Updated second return statement in BLEDevice.__str__ to use self.name or 'Unknown'.

Updated changelog
Changed Service identification to handles for Windows pythonnet backend.
Changed Service identification to handles for BlueZ txdbus backend
Implement service handle for Core Bluetooth
Updated CHANGELOG.rst

Fixes hbldh#445
Fixes hbldh#362
Fix for the 'Unknown' name in scan results on Windows 10. 

Fixes hbldh#371
Implemented async callbacks for pythonnet, BlueZ txdbus and Core Bluetooth backends.
New example: Async callbacks with a queue and external consumer
0f56dab made a breaking change by changing is_connected from an async
method to a property. This wraps the return value of the property so
that it won't break existing code, but will instead print a warning
explaining the change.
use proper args and add stack trace level
Needed for Python 3.6. create_task() was introduced in Python 3.7
@xloem
xloem force-pushed the p4a-beta-test branch 5 times, most recently from 0228d7a to af6c2b5 Compare October 10, 2021 17:47
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.