manolofdez / AsyncBluetooth

A small library that adds concurrency to CoreBluetooth APIs.
MIT License
160 stars 30 forks source link

How do I read/write to a peripheral? #11

Closed soltesza closed 1 year ago

soltesza commented 2 years ago

As far as I can tell, there are no examples for reading from and writing to a peripheral, and no documentation whatsoever for the writeValue method. I'm having trouble receiving data from my peripheral but I'm not sure if I'm even using the readValue method correctly.

manolofdez commented 2 years ago

Hi! There are some examples in the README.md from which you can see how to use the readValue method. The writeValue works very similarly to readValue. You can find more in depth examples in the AsyncBluetooth Cookbok. Let me know if after reading these you're still running into issues.

soltesza commented 2 years ago

Hi thanks for the response. Can you point me to where in the cookbook it covers reading and writing? Thanks for your help