Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Failed to write characteristic #10

Open
shirish93 opened this issue Sep 24, 2021 · 0 comments
Open

[Bug] Failed to write characteristic #10

shirish93 opened this issue Sep 24, 2021 · 0 comments

Comments

@shirish93
Copy link

shirish93 commented Sep 24, 2021

Hi,

While trying to adjust the temperature or color of the mug, I get this error. I'm on MacOs, running Python 3.7. Can you guide me towards where I should look to debug it?

Changed Color to bytearray(b'\x18\x18\x18\xff')
.
Exception in callback PeripheralDelegate.did_write_value_for_characteristic(<CBPeripheral...e = connected>, <CBCharacteri...otifying = NO>, Error Domain=...ot permitted.})
handle: <Handle PeripheralDelegate.did_write_value_for_characteristic(<CBPeripheral...e = connected>, <CBCharacteri...otifying = NO>, Error Domain=...ot permitted.})>
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/Users/n0272436/Library/Python/3.7/lib/python/site-packages/bleak/backends/corebluetooth/PeripheralDelegate.py", line 354, in did_write_value_for_characteristic
    "Failed to write characteristic {}: {}".format(cUUID, error)
bleak.exc.BleakError: Failed to write characteristic FC540014-236C-4C94-8FA9-944A3E5353FA: Error Domain=CBATTErrorDomain Code=3 "Writing is not permitted." UserInfo={NSLocalizedDescription=Writing is not permitted.}
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

No branches or pull requests

1 participant