I have multiple packets to send over GATT, NRF_SDH_BLE_GATT_MAX_MTU_SIZE = 160, how can I get the remaining buf size,thanks
I have multiple packets to send over GATT, NRF_SDH_BLE_GATT_MAX_MTU_SIZE = 160, how can I get the remaining buf size,thanks
Hi,
From the sd_ble_gatts_hvx() documention:
The number of Handle Value Notifications that can be queued is configured by ble_gatts_conn_cfg_t::hvn_tx_queue_size When the queue is full, the function call will return NRF_ERROR_RESOURCES. A BLE_GATTS_EVT_HVN_TX_COMPLETE event will be issued as soon as the transmission of the notification is complete.The application can keep track of the available queue element count for notifications by following the procedure below: