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

How to control the central writing with response

Hi, 

    For example ble_app_uart, when the peripheral ble rx buffer is almost full, I want to control the central write with response, but I don't konw how to indicate the central wite false by the peripheral devcie.

    For peripheral, the uuid config is as follows

    add_char_params.char_props.write         = 1;
    // add_char_params.char_props.write_wo_resp = 1;
Parents
  • It is possible to do what you describe, however the throughput will be very low, since you need to acknowledge every write in the application, this means you will effectively only be able to do one write every other connection interval.

    I think you should look into handshaking this on the application layer, e.g. only 5 writes are allowed before the peer will wait for a notification back indicating the next 5 are ready to be received.

Reply
  • It is possible to do what you describe, however the throughput will be very low, since you need to acknowledge every write in the application, this means you will effectively only be able to do one write every other connection interval.

    I think you should look into handshaking this on the application layer, e.g. only 5 writes are allowed before the peer will wait for a notification back indicating the next 5 are ready to be received.

Children
Related