Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f985ea6

Browse files
committed
[WIP] Change supervision timeout - for nano33ble connection error reason
1 parent 0b9e84a commit f985ea6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/utility/ATT.cpp‎

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /