Compilation environment :nRF Connect SDK V1.4.2
I successfully subscribed to a notification property of the peripheral using bt_gatt_subscribe, the callback function is
notify_func(struct bt_conn *conn, struct bt_gatt_subscribe_params *params, const void *data, uint16_t length).
When the data sent by the external device I am connected to is 30 bytes, the notification callback function parameter length keeps printing out 20 bytes. I have configured CONFIG-BT-L2CAP-RX-MTU=247, but it does not work.
I hope the callback function can correctly obtain the length of data passed from the peripheral.
how to slove this problem?
thanks.