question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for long reads/writes?

See original GitHub issue

Just wondering if support for long reads/writes is planned? Trying to write_gatt_char with a bytearray larger than the mtu results in a:

Connected: True Traceback (most recent call last): File "./ble2.py", line 30, in <module> loop.run_until_complete(run(address, loop, True)) File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "./ble2.py", line 21, in run await client.write_gatt_char('0000abf1-0000-1000-8000-00805f9b34fb', bytearray(text, 'utf-8')) File "/home/chris/.local/lib/python3.8/site-packages/bleak/backends/bluezdbus/client.py", line 540, in write_gatt_char await self._bus.callRemote( txdbus.error.RemoteError: org.bluez.Error.Failed: Failed to initiate write

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chris1setocommented, Aug 7, 2020
  • Bleak 0.7.1 from pip3
  • python 3.8.2
  • Ubuntu 20.04.1 LTS
  • BlueZ 5.53

Thanks!

1reaction
dlechcommented, Aug 7, 2020

What is your version info?

  • bleak version:
  • Python version:
  • Operating System:
  • BlueZ version (bluetoothctl -v) in case of Linux:
Read more comments on GitHub >

github_iconTop Results From Across the Web

BLE Long write - Nordic Q&A
I have read many, many forum posts about doing long reads/writes. Virtually everyone says you cannot do long writes.
Read more >
JSON Reads/Writes/Format Combinators - Play Framework
JsPath has methods to create special Reads that apply another Reads to a JsValue at a specified path: ... Note: The JSON library...
Read more >
BSON to Play JSON support for Long values - Stack Overflow
So I can use JSON Play reads/writes while importing the 'reactivemongo.play.json._' package and then easily fetch data from a JSONCollection ...
Read more >
Optimize request cost in Azure Cosmos DB - Microsoft Learn
This article describes how read and write requests translate into Request Units and how to optimize the cost of these requests. Read operations ......
Read more >
Read/write capacity mode - Amazon DynamoDB
Tables that use on-demand mode deliver the same single-digit millisecond latency, service-level agreement (SLA) commitment, and security that DynamoDB ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found