Skip to content

[Bug] Failed to write characteristic  #10

Description

@shirish93

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.}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions