esp_attr_control_t::auto_rsp field
Controls who handles the response to Read/Write operations. - If set to @c ESP_GATT_RSP_BY_APP, the application is responsible for generating the response. - If set to @c ESP_GATT_AUTO_RSP, the GATT stack will automatically generate the response.