But I am not sure how to interpret the manufacturer data being listed… What is the “305”, and as some data is prefixed with “\x” I am unsure on how to read it…
You will also see in this code, the manufacturer name is derived from the bleak python module.
@property
def manufacturer(self) -> Optional[str]:
"""Convert manufacturer data to a string."""
from bleak.backends._manufacturers import (
MANUFACTURERS, # pylint: disable=import-outside-toplevel
)
for manufacturer in self.manufacturer_data:
if manufacturer in MANUFACTURERS:
name: str = MANUFACTURERS[manufacturer]
return name
return None
Showing it looks up the int part of the manufacturer data in the manufacturers constant from bleak.
These are in hex so you have to convert your int to see if it is listed. 305 is 0x0131 which in this constant is 0x0131: “Cypress Semiconductor”,