not able to send more the 20bytes in notification character using bt_gatt_notify api go through different tickets still not able to send more then 20bytes

i am receiving some packets so i need to send that packet to central device(mobile) if i send 20-20bytes it successfully sending the data to central device(mobile) if its more then 20 bytes its returning -128 ,i have changed mtu size .

proji.config:
CONFIG_BT_BUF_ACL_RX_SIZE=251
CONFIG_BT_L2CAP_TX_MTU=247
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
main.c:
 err = bt_gatt_exchange_mtu(current_conn1,&exchange_params);
   if(err == 0)
   {
    DPRINTF("MTU CHANGED\n\r");
   }
   else
   {
    DPRINTF("MTU NOT_CHANGED\n\r");
   }
and using 
tm_status=bt_gatt_notify(current_conn1, &ccbg_serv.attrs[1], sPtr ,ble_tx_size); to notify

still it's not sending full pkt to ble central device(mobile vie ble)

Parents Reply Children
Related