We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39f4046 commit e63796cCopy full SHA for e63796c
ports/nrf/common-hal/_bleio/__init__.c
@@ -74,7 +74,14 @@ void check_sec_status(uint8_t sec_status) {
74
if (sec_status == BLE_GAP_SEC_STATUS_SUCCESS) {
75
return;
76
}
77
- mp_raise_bleio_SecurityError(translate("Unknown security error: 0x%04x"), sec_status);
+
78
+ switch (sec_status) {
79
+ case BLE_GAP_SEC_STATUS_UNSPECIFIED:
80
+ mp_raise_bleio_SecurityError(translate("Unspecified issue. Can be that the pairing prompt on the other device was declined or ignored."));
81
+ return;
82
+ default:
83
+ mp_raise_bleio_SecurityError(translate("Unknown security error: 0x%04x"), sec_status);
84
+ }
85
86
87
// Turn off BLE on a reset or reload.
0 commit comments