-
After initialization.Set the libuarte rx buffer to 244 when connected to Android and 185 when connected to ios. Can it be done?
- nRF5_SDK_17.1.0 nrf52832 libuarte+nus.
After initialization.Set the libuarte rx buffer to 244 when connected to Android and 185 when connected to ios. Can it be done?
Hi
Can you explain what you mean by the nrf_libuarte_async_rx_free() not working properly? It is intentional that the buffer is only freed on the buffer boundary. It will not work correctly if you don't provide the correct lengths to the rx_free function. If you want to set the buffer sizes after a connection is done, I think you need to uninit and reinitialize the libuarte with this new buffer size. However I don't think it will be necessary if you just set it to 255 bytes, then the iOS devices will be able to use that buffer size as well. If you set the buffer size to 255 bytes and read 184 bytes, the second transfer should be split into two buffers, one of 71 bytes, and the next in 113 bytes.
Best regards,
Simon
Thanks, problem solved
Thanks, problem solved