This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is BLE mesh application limit sending data at less than 10 bytes in every packet?

Hello every one:

 I had modified the light-switch example into a model that can sent and receive multiple bytes.It is work fine when I set the num of bytes less than 10 bytes,but once I send data over 10 bytes and at a intervals of less than 2s,the code always run into the place show bellow.what I want to do is to send 10~20 bytes in a quickly way,any there any solution for me, Great Thanks.

Parents
  • Hi,

    When you send packets that are longer than 11 bytes, they will be sent as segmented packets. NRF_ERROR_INVALID_STATE means that there's already a segmented packet to this destination in progress. You have to wait for it to finish before sending new segmented packets. A solution is to wait for the NRF_MESH_EVT_TX_COMPLETE event before sending a new packet.

Reply
  • Hi,

    When you send packets that are longer than 11 bytes, they will be sent as segmented packets. NRF_ERROR_INVALID_STATE means that there's already a segmented packet to this destination in progress. You have to wait for it to finish before sending new segmented packets. A solution is to wait for the NRF_MESH_EVT_TX_COMPLETE event before sending a new packet.

Children
Related