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

HCI/ACL fragmentation and flow control #62

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bugadani
Copy link

This PR ports the following commits:

abandonware/bleno@16b9ebe
abandonware/bleno@916a291
abandonware/bleno@06f5b2d

This patch is necessary for pybleno to work correctly on the Raspberry Pi Zero 2 W.

@bugadani bugadani force-pushed the hci branch 2 times, most recently from b96c26d to 81dd643 Compare May 27, 2024 12:21

def writeOneAclDataPkt(self):
pkt = self._aclOutQueue.pop(0)
if pkt["handle"] not in self._handleAclsInProgress:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not part of bleno, but notifications aren't unsubscribed when the central disconnects, so without this check we would end up throwing exceptions every time a (notified) characteristic value changes after disconnection. Not a proper fix, but good enough.

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