Skip to content

Commit df5f6c4

Browse files
committed
MAX_DISC_CHARS = 8 to avoid excessive OTA queries for discovery.
1 parent 38127c2 commit df5f6c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Bluefruit52Lib/src/BLEDiscovery.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ bool BLEDiscovery::_discoverService(uint16_t conn_handle, BLEClientService& svc,
107107
uint8_t BLEDiscovery::discoverCharacteristic(uint16_t conn_handle, BLEClientCharacteristic* chr[], uint8_t count)
108108
{
109109
// We could found more characteristic than we looking for. Buffer must be large enough
110-
enum { MAX_DISC_CHARS = 4 };
110+
enum { MAX_DISC_CHARS = 8 };
111111

112112
// -1 because the first ble_gattc_char_t is built in to ble_gattc_evt_char_disc_rsp_t
113113
uint16_t bufsize = sizeof(ble_gattc_evt_char_disc_rsp_t) + (MAX_DISC_CHARS-1)*sizeof(ble_gattc_char_t);

0 commit comments

Comments
 (0)