Skip to content

Commit 3803e5f

Browse files
polldogiulcioffi
authored andcommitted
[WIP] Change supervision timeout - for nano33ble connection error reason
1 parent 71e51a4 commit 3803e5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/utility/ATT.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ ATTClass::~ATTClass()
109109

110110
bool ATTClass::connect(uint8_t peerBdaddrType, uint8_t peerBdaddr[6])
111111
{
112+
// original supervision timeout "0x00c8" seems to be too short for Nano 33 BLE (2 seconds)
112113
if (HCI.leCreateConn(0x0060, 0x0030, 0x00, peerBdaddrType, peerBdaddr, 0x00,
113-
0x0006, 0x000c, 0x0000, 0x00c8, 0x0004, 0x0006) != 0) {
114+
0x0006, 0x000c, 0x0000, 1000, 0x0004, 0x0006) != 0) {
114115
return false;
115116
}
116117

0 commit comments

Comments
 (0)