File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ ble-l2cap-credit-workaround = []
5050evt-max-size-256 = []
5151evt-max-size-512 = []
5252
53+ # Support more discovery characteristics in GATT clients,
54+ # may be needed with higher ATT_MTU and peripherals with
55+ # many service characteristics
56+ discovery-chars-12 = []
57+
5358[dependencies ]
5459defmt = { version = " 0.3" , optional = true }
5560log = { version = " 0.4.11" , optional = true }
Original file line number Diff line number Diff line change @@ -106,7 +106,11 @@ impl From<RawError> for DiscoverError {
106106 }
107107}
108108
109+ #[ cfg( not( feature = "discovery-chars-12" ) ) ]
109110const DISC_CHARS_MAX : usize = 6 ;
111+ #[ cfg( feature = "discovery-chars-12" ) ]
112+ const DISC_CHARS_MAX : usize = 12 ;
113+
110114const DISC_DESCS_MAX : usize = 6 ;
111115
112116pub ( crate ) async fn discover_service ( conn : & Connection , uuid : Uuid ) -> Result < raw:: ble_gattc_service_t , DiscoverError > {
You can’t perform that action at this time.
0 commit comments