GATT write callback error cases

Hello,

I am wondering about what happens with the write callback if a write fails to a GATT attribute. E.g. with the following definition:

    BT_GATT_CHARACTERISTIC(UUID_MY_RX,
                   BT_GATT_CHRC_WRITE |
                   BT_GATT_CHRC_WRITE_WITHOUT_RESP,
                   BT_GATT_PERM_READ | BT_GATT_PERM_WRITE,
                   NULL, on_receive, NULL),

Will on_receive be called if one of many PDUs of a write (when data length is smaller than MTU) fails to arrive?

Thanks in advance,

Miklos

Related