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

Increase characteristic value max length

Sorry ,I have the problem with increasing the max data length(more then 20 bytes) in the characteristic , I change the att_mtu size like the value in the picture, but after I changed it, I  can't even detect my device name , is there any else I have to do when I change the size?  I'm using sdk 15.3 ,template project.

Parents Reply
  • When you get the NRF_ERROR_RESOURCES return code from sd_ble_gatts_hvx , then the notfication/indication will not be queued and you need to call sd_ble_gatts_hvx() again with the same parameters when you get the BLE_GATTS_EVT_HVN_TX_COMPLETE event.

    As stated previously the connection event will be closed if there aren't any more packets in the queue. So if there are only one or two packets in the queue, then those will be sent and the connection event will be closed. It will only remain "open" as long as there are packets to send. So it should not affect the current consumption that much, but this will depend on how many packets you send. 

    Best regards

    Bjørn

Children
Related