This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Receiving Large Data over NUS

I want to  receive  more than 250 bytes over NUS ,presently i have receiving All Data but in parts of 20 bytes (i.e after receiving 20 bytes BLE_NUS_EVT_RX_DATA event is occures).

what should i do to receive Large Data over NUS  under just one BLE_NUS_EVT_RX_DATA event,

thank you in advance ...

Parents
  • The BLE_NUS_EVT_RX_DATA is raised when you receive a BLE packet from your client, and the maximum size of those packets are limited by the ATT_MTU size for your connection.You can read more about this here: GATT Module.

    That said, our peripheral NUS example does support 244 byte packets by default, so I guess long MTU is not supported by your client as you are only receiving 20 bytes at a time.

Reply
  • The BLE_NUS_EVT_RX_DATA is raised when you receive a BLE packet from your client, and the maximum size of those packets are limited by the ATT_MTU size for your connection.You can read more about this here: GATT Module.

    That said, our peripheral NUS example does support 244 byte packets by default, so I guess long MTU is not supported by your client as you are only receiving 20 bytes at a time.

Children
Related