Skip to content

Preserve 32-bit UUID buffers when decoding services - #37

Open
2031814001yuyue-tech wants to merge 1 commit into
Heerkog:masterfrom
2031814001yuyue-tech:pr-machine/20261028T055546-461ce781
Open

2031814001yuyue-tech wants to merge 1 commit into
Heerkog:masterfrom
2031814001yuyue-tech:pr-machine/20261028T055546-461ce781

Conversation

@2031814001yuyue-tech

Copy link
Copy Markdown

decode_services() incorrectly unpacks four-byte service UUIDs with <d. Pass the raw buffer directly to bluetooth.UUID(), preserving all 32 bits and using its supported buffer constructor.

This follows the approach in MicroPython's advertising helper fix.

Five host-side unit tests and 24 raw-payload boundary/buffer cases pass. Hardware imports are substituted in host tests; ESP32 hardware validation was not performed.

@2031814001yuyue-tech
2031814001yuyue-tech marked this pull request as ready for review October 28, 2026 12:26
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