nrf52840 - read write data

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
olivier1870
 
Posts: 19
Joined: Mon Dec 18, 2017 5:12 am

nrf52840 - read write data

Post by olivier1870 »

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?

User avatar
hathach
 
Posts: 1270
Joined: Tue Apr 23, 2013 1:02 am

Re: nrf52840 - read write data

Post by hathach »

you can use the read() variant with buffer and buflen
https://github.com/adafruit/Adafruit_nR ... tic.h#L131

Code: Select all

uint16_t read  (void* buffer, uint16_t bufsize, uint16_t offset = 0);

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”