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

Order of responses for GATT read/write requests

Hi,

Is there a possibility that the order of the responses can be different with respect to the order of the requests?

We check for the success status of the APIs sd_ble_gattc_read() and sd_ble_gattc_write() and expect the response in the same order. But sometimes, quite randomly order is not correct. We don't have logs unfortunately.

Side note:

We have 32 length characteristic value. Peripheral first sends 20 bytes data as an Indication and from the Central we try to read the remaining bytes from offset 20. This read request is called from the event handler. Do you see any problem in this approach? Normally it works just fine.

Parents
  • New update from the devs:

    "The nRF51822 does not buffer requests, so they should come in the same order as issued since only one request may be in progress at any time. If a more detailed answer is required, please let me know!"

    Best regards,

    Simon

Reply
  • New update from the devs:

    "The nRF51822 does not buffer requests, so they should come in the same order as issued since only one request may be in progress at any time. If a more detailed answer is required, please let me know!"

    Best regards,

    Simon

Children