Closed kevincar closed 3 years ago
This is also occurring on Windows
File "C:\tools\miniconda3\envs\bless\lib\site-packages\bleak\backends\dotnet\characteristic.py", line 70, in handle
return int(self.obj.AttributeHandle)
AttributeError: 'GattLocalCharacteristic' object has no attribute 'AttributeHandle'
Closing with #30
The problem
This behavior is a result of this recent bleak pull request. It seems that when a new CBService is initialized before setting the server in motion that the service does not yet own a handle
Reproduction
TEST_HARDWARE=True python -m pytest -s -k server
Desktop
Proposed Solution
Create a BlessGATTServiceCoreBluetooth rather than bleak. This will allow us to get the service created, and potentially handle "handles" later.