AsyncBluetooth icon indicating copy to clipboard operation
AsyncBluetooth copied to clipboard

How do I read/write to a peripheral?

Open soltesza opened this issue 3 years ago • 2 comments

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.

soltesza avatar Aug 08 '22 22:08 soltesza

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.

manolofdez avatar Aug 09 '22 12:08 manolofdez

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

soltesza avatar Aug 09 '22 15:08 soltesza