Hi
I m happily using the Itsby Bisby NRF52840 and, although I managed to send data to the PC (I m using the library <bluefruit.h>), I have difficulties to read data send from the PC.
The read8() function works, but I would need to read bytearrays instead (using a python script + pygatt on the PC)!
Can anyone help me with this?
nrf52840 - read write data
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- hathach
- Posts: 1270
- Joined: Tue Apr 23, 2013 1:02 am
Re: nrf52840 - read write data
you can use the read() variant with buffer and buflen
https://github.com/adafruit/Adafruit_nR ... tic.h#L131
https://github.com/adafruit/Adafruit_nR ... tic.h#L131
Code: Select all
uint16_t read (void* buffer, uint16_t bufsize, uint16_t offset = 0);
Please be positive and constructive with your questions and comments.