Closed zhangzhii closed 4 years ago
You could refer to the test https://github.com/NordicSemiconductor/pc-ble-driver-py/blob/master/tests/test_data_length.py, it uses data length up to 251. Note that you'll need to modify event_length to get the higher data lenghts.
It works after I set event_length to 5! Thank you!!
Good to hear, thanks for the update.
Hi, I'm using a v5 nrf52840 dongle to communicate with a custom nrf52832 device.
Data_length requested by the device is 251. While using nrf_connect, data_length is set to be 251 automatically. But if I don't set data_length in my script, the value is cut down to 151:
I tried to set data_length but got
NRF_ERROR_RESOURCES
.result:
What is the correct way to set data_length? Thanks in advance.