File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
micropython/bluetooth/aioble/aioble Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 35
35
limit_peers = None
36
36
37
37
SEC_TYPES_SELF = (10 , )
38
- SEC_TYPES_PEER = (1 , 2 , 3 , 4 )
39
-
38
+ SEC_TYPES_PEER = (1 , 2 , 4 )
39
+ SEC_TYPES_CCCD = ( 3 , )
40
40
41
41
# Must call this before stack startup.
42
42
def load_secrets (path = None ):
@@ -124,7 +124,7 @@ def _log_peers(heading=""):
124
124
if core .log_level <= 2 :
125
125
return
126
126
log_info ("secrets:" , heading )
127
- for sec_type in SEC_TYPES_PEER :
127
+ for sec_type in SEC_TYPES_PEER + SEC_TYPES_CCCD :
128
128
log_info ("-" , sec_type )
129
129
130
130
if sec_type not in _secrets :
@@ -216,6 +216,9 @@ def _security_irq(event, data):
216
216
217
217
for k , v in secrets :
218
218
if k == key :
219
+ if index :
220
+ index -= 1
221
+ continue
219
222
return v
220
223
return None
221
224
You can’t perform that action at this time.
0 commit comments