Skip to content

Commit d6e8cd8

Browse files
authored
Merge pull request arduino-libraries#131 from giulcioffi/AdjustMaxPeers
Adjust ATT_MAX_PEERS definition and increase max number of BLE connections for MKR WiFi 1010
2 parents a7d52df + 98a7bbb commit d6e8cd8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utility/ATT.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626

2727
#define ATT_CID 0x0004
2828

29-
#if defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7)
30-
#define ATT_MAX_PEERS 7
31-
#elif DM_CONN_MAX
29+
#if DM_CONN_MAX
3230
#define ATT_MAX_PEERS DM_CONN_MAX // Mbed + Cordio
33-
#else
31+
#elif __AVR__
3432
#define ATT_MAX_PEERS 3
33+
#else
34+
#define ATT_MAX_PEERS 8
3535
#endif
3636

3737
class BLERemoteDevice;

0 commit comments

Comments
 (0)