Allowlist - pairing window open/close 추가

- 신규 페어링 제한 및 인증 실패 제한- Allowlist: 등록된 central만 페어링 기본 허용- 출고 직후 / bond 없는 상태: pairing window open  → central이 연결 후 처음 페어링 성공  → 본딩 정보 저장 : 페어링된 central 등록, pairing window close  → 이후 평상시에는 등록된 central만 연결 허용- 재등록/초기화  → 전원 버튼 15초 롱프레스로 본딩 정보 삭제  → 10분간 pairing window open  → 10분 내 페어링 완료 시 본딩 정보 저장 : central 등록, pairing window close  → 10분 내 페어링 미완료 시 : pairing window close
This commit is contained in:
2026-08-04 16:18:01 +09:00
parent fd79faa39d
commit 7aeb7384cd
4 changed files with 125 additions and 4 deletions
+2
View File
@@ -76,10 +76,12 @@ int cmd_msr(const uint8_t *data, uint8_t data_len)
{
led_set_state(LED_STATE_BOND_DELETE);
bond_data_delete = true;
ble_pairing_window_mark_reset_open();
DBG_PRINTF("[CMD] msr bond data deleted\r\n");
}
#else
bond_data_delete = true;
ble_pairing_window_mark_reset_open();
DBG_PRINTF("[CMD] msr bond delete skipped (BT_SMP disabled)\r\n");
#endif