-
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
Same rules/answer applies for the TX buffer as for the RX buffer. The peripheral application won't have a clue if it connects to an Android device or an iOS device, but I guess you can change the buffer after a connection is made to whatever the MTU size is set to in the connection to get the same buffer size as what the central device supports. However, it should also be fine to just set the TX buffer to 244 during init, and then leave it like that when connecting to iOS devices as well.
Best regards,
Simon
Hi
Same rules/answer applies for the TX buffer as for the RX buffer. The peripheral application won't have a clue if it connects to an Android device or an iOS device, but I guess you can change the buffer after a connection is made to whatever the MTU size is set to in the connection to get the same buffer size as what the central device supports. However, it should also be fine to just set the TX buffer to 244 during init, and then leave it like that when connecting to iOS devices as well.
Best regards,
Simon
Sorry, I wrote it wrong.How to change the buffer to the MTU size set in the connection after a connection.
How to change the libuarte rx buffer to the MTU size set in the connection after a connection.

nrf_libuarte_async_rx_free() is not working properly.