ITADN

Fix BlueZ MTU Size Error

#3Pull Requestglfharris 创建于 2024-10-25已合并
G
glfharriscommented
There seems to be a long running issue with Bleak and the default bluetooth stack on Linux BlueZ, where the MTU size isn't set correctly. With respect to the Frame SDK, without correcting for MTU size, usually generates a `Payload length is too large` exception. I appreciate this is a pretty specific use case, but there doesn't seem to be way to easily do this on the user side, rather than modifying the library. Largely because the `__aenter__` method both connects, and attempts to inject the library functions, which will fail if the MTU size is incorrect. Mirrors suggestion by Bleak maintainers in `bleak/examples/mtu_size.py`, and is a little more reliable than adding a hard coded mtu size. Targets issue #1.
合并状态:已合并 合并于 2024-10-26 关闭于 2024-10-26 1 条评论