static struct bt_gatt_attr ble_attrs[]=
{
BT_GATT_PRIMARY_SERVICE(BT_UUID_DOLP_SER),
BT_GATT_CHARACTERISTIC(BT_UUID_DOLP_NOTIFY,
BT_GATT_CHRC_NOTIFY,
BT_GATT_PERM_NONE,
NULL,
NULL,
NULL),
BT_GATT_CHARACTERISTIC(BT_UUID_DOLP_WRITE,
BT_GATT_CHRC_WRITE | BT_GATT_CHRC_WRITE_WITHOUT_RESP,
BT_GATT_PERM_WRITE,
NULL,
recv_cb,
NULL),
};
我使用收发回调每次只能收20个字节,超过20字节回分包发,如何设置才能一次传输最大数据量?