bluetooth-data-tools 1.26.2__tar.gz → 1.26.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/PKG-INFO +1 -1
  2. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/pyproject.toml +1 -1
  3. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/setup.py +1 -1
  4. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/src/bluetooth_data_tools/__init__.py +1 -1
  5. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/src/bluetooth_data_tools/gap.pxd +0 -1
  6. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/src/bluetooth_data_tools/gap.py +1 -2
  7. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/LICENSE +0 -0
  8. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/README.md +0 -0
  9. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/build_ext.py +0 -0
  10. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/src/bluetooth_data_tools/_time_impl.pyx +0 -0
  11. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/src/bluetooth_data_tools/_utils_impl.pyx +0 -0
  12. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/src/bluetooth_data_tools/distance.py +0 -0
  13. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/src/bluetooth_data_tools/privacy.py +0 -0
  14. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/src/bluetooth_data_tools/py.typed +0 -0
  15. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/src/bluetooth_data_tools/time.py +0 -0
  16. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/src/bluetooth_data_tools/utils.pxd +0 -0
  17. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/src/bluetooth_data_tools/utils.py +0 -0
  18. {bluetooth_data_tools-1.26.2 → bluetooth_data_tools-1.26.3}/src/bluetooth_data_tools/utils_wrapper.h +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bluetooth-data-tools
3
- Version: 1.26.2
3
+ Version: 1.26.3
4
4
  Summary: Tools for converting bluetooth data and packets
5
5
  License: Apache-2.0
6
6
  Author: J. Nick Koston
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [project]
6
6
  name = "bluetooth-data-tools"
7
- version = "1.26.2"
7
+ version = "1.26.3"
8
8
  license = "Apache-2.0"
9
9
  description = "Tools for converting bluetooth data and packets"
10
10
  authors = [{ name = "J. Nick Koston", email = "nick@koston.org" }]
@@ -18,7 +18,7 @@ extras_require = \
18
18
 
19
19
  setup_kwargs = {
20
20
  'name': 'bluetooth-data-tools',
21
- 'version': '1.26.2',
21
+ 'version': '1.26.3',
22
22
  'description': 'Tools for converting bluetooth data and packets',
23
23
  'long_description': '# Bluetooth Data Tools\n\n<p align="center">\n <a href="https://github.com/bluetooth-devices/bluetooth-data-tools/actions/workflows/ci.yml?query=branch%3Amain">\n <img src="https://img.shields.io/github/actions/workflow/status/bluetooth-devices/bluetooth-data-tools/ci.yml?branch=main&label=CI&logo=github&style=flat-square" alt="CI Status" >\n </a>\n <a href="https://bluetooth-data-tools.readthedocs.io">\n <img src="https://img.shields.io/readthedocs/bluetooth-data-tools.svg?logo=read-the-docs&logoColor=fff&style=flat-square" alt="Documentation Status">\n </a>\n <a href="https://codecov.io/gh/Bluetooth-Devices/bluetooth-data-tools">\n <img src="https://img.shields.io/codecov/c/github/Bluetooth-Devices/bluetooth-data-tools.svg?logo=codecov&logoColor=fff&style=flat-square" alt="Test coverage percentage">\n </a>\n <a href="https://codspeed.io/Bluetooth-Devices/bluetooth-data-tools"><img src="https://img.shields.io/endpoint?url=https://codspeed.io/badge.json" alt="CodSpeed Badge"/></a>\n</p>\n<p align="center">\n <a href="https://python-poetry.org/">\n <img src="https://img.shields.io/badge/packaging-poetry-299bd7?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAASCAYAAABrXO8xAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJJSURBVHgBfZLPa1NBEMe/s7tNXoxW1KJQKaUHkXhQvHgW6UHQQ09CBS/6V3hKc/AP8CqCrUcpmop3Cx48eDB4yEECjVQrlZb80CRN8t6OM/teagVxYZi38+Yz853dJbzoMV3MM8cJUcLMSUKIE8AzQ2PieZzFxEJOHMOgMQQ+dUgSAckNXhapU/NMhDSWLs1B24A8sO1xrN4NECkcAC9ASkiIJc6k5TRiUDPhnyMMdhKc+Zx19l6SgyeW76BEONY9exVQMzKExGKwwPsCzza7KGSSWRWEQhyEaDXp6ZHEr416ygbiKYOd7TEWvvcQIeusHYMJGhTwF9y7sGnSwaWyFAiyoxzqW0PM/RjghPxF2pWReAowTEXnDh0xgcLs8l2YQmOrj3N7ByiqEoH0cARs4u78WgAVkoEDIDoOi3AkcLOHU60RIg5wC4ZuTC7FaHKQm8Hq1fQuSOBvX/sodmNJSB5geaF5CPIkUeecdMxieoRO5jz9bheL6/tXjrwCyX/UYBUcjCaWHljx1xiX6z9xEjkYAzbGVnB8pvLmyXm9ep+W8CmsSHQQY77Zx1zboxAV0w7ybMhQmfqdmmw3nEp1I0Z+FGO6M8LZdoyZnuzzBdjISicKRnpxzI9fPb+0oYXsNdyi+d3h9bm9MWYHFtPeIZfLwzmFDKy1ai3p+PDls1Llz4yyFpferxjnyjJDSEy9CaCx5m2cJPerq6Xm34eTrZt3PqxYO1XOwDYZrFlH1fWnpU38Y9HRze3lj0vOujZcXKuuXm3jP+s3KbZVra7y2EAAAAAASUVORK5CYII=" alt="Poetry">\n </a>\n <a href="https://github.com/ambv/black">\n <img src="https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square" alt="black">\n </a>\n <a href="https://github.com/pre-commit/pre-commit">\n <img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square" alt="pre-commit">\n </a>\n</p>\n<p align="center">\n <a href="https://pypi.org/project/bluetooth-data-tools/">\n <img src="https://img.shields.io/pypi/v/bluetooth-data-tools.svg?logo=python&logoColor=fff&style=flat-square" alt="PyPI Version">\n </a>\n <img src="https://img.shields.io/pypi/pyversions/bluetooth-data-tools.svg?style=flat-square&logo=python&amp;logoColor=fff" alt="Supported Python versions">\n <img src="https://img.shields.io/pypi/l/bluetooth-data-tools.svg?style=flat-square" alt="License">\n</p>\n\nTools for converting bluetooth data and packets\n\n## Installation\n\nInstall this via pip (or your favourite package manager):\n\n`pip install bluetooth-data-tools`\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- prettier-ignore-start -->\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- markdownlint-disable -->\n<!-- markdownlint-enable -->\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n<!-- prettier-ignore-end -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n## Credits\n\nThis package was created with\n[Cookiecutter](https://github.com/audreyr/cookiecutter) and the\n[browniebroke/cookiecutter-pypackage](https://github.com/browniebroke/cookiecutter-pypackage)\nproject template.\n',
24
24
  'author': 'J. Nick Koston',
@@ -21,7 +21,7 @@ from .utils import (
21
21
  short_address,
22
22
  )
23
23
 
24
- __version__ = "1.26.2"
24
+ __version__ = "1.26.3"
25
25
 
26
26
 
27
27
  __all__ = [
@@ -49,6 +49,5 @@ cpdef parse_advertisement_data(object data)
49
49
  offset=cython.uint,
50
50
  start=cython.uint,
51
51
  end=cython.uint,
52
- tx_power_int="unsigned char"
53
52
  )
54
53
  cpdef _uncached_parse_advertisement_data(tuple data)
@@ -180,15 +180,14 @@ def _uncached_parse_advertisement_data(
180
180
  continue
181
181
  start = offset + 2
182
182
  end = start + length - 1
183
+ offset += 1 + length
183
184
  if end > total_length or end - start <= 0:
184
185
  _LOGGER.debug(
185
186
  "Invalid BLE GAP AD structure at offset %s: %s (%s)",
186
187
  offset,
187
188
  gap_bytes,
188
189
  )
189
- offset += 1 + length
190
190
  continue
191
- offset += 1 + length
192
191
  if gap_type_num == TYPE_SHORT_LOCAL_NAME and local_name is None:
193
192
  local_name = gap_data[start:end].decode("utf-8", "replace")
194
193
  elif gap_type_num == TYPE_COMPLETE_LOCAL_NAME: