Skip to content

Commit 7e6e131

Browse files
Copiloth2zero
andcommitted
Revert example changes per review feedback
Co-authored-by: h2zero <32826625+h2zero@users.noreply.github.com>
1 parent 08cfb6e commit 7e6e131

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

examples/NimBLE_Client/NimBLE_Client.ino

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@ class ClientCallbacks : public NimBLEClientCallbacks {
3434
NimBLEDevice::injectPassKey(connInfo, 123456);
3535
}
3636

37-
uint32_t onPassKeyDisplay(NimBLEConnInfo& connInfo) override {
38-
Serial.printf("Client Passkey Display\n");
39-
/**
40-
* This should return a random 6 digit number for security
41-
* or make your own static passkey as done here.
42-
* The peer device must enter this passkey to complete the pairing.
43-
*/
44-
return 123456;
45-
}
46-
4737
void onConfirmPasskey(NimBLEConnInfo& connInfo, uint32_t pass_key) override {
4838
Serial.printf("The passkey YES/NO number: %" PRIu32 "\n", pass_key);
4939
/** Inject false if passkeys don't match. */

examples/NimBLE_Server/NimBLE_Server.ino

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@ class ServerCallbacks : public NimBLEServerCallbacks {
4949
return 123456;
5050
}
5151

52-
void onPassKeyEntry(NimBLEConnInfo& connInfo) override {
53-
Serial.printf("Server Passkey Entry\n");
54-
/**
55-
* Respond with the passkey displayed on the peer device.
56-
*/
57-
NimBLEDevice::injectPassKey(connInfo, 123456);
58-
}
59-
6052
void onConfirmPassKey(NimBLEConnInfo& connInfo, uint32_t pass_key) override {
6153
Serial.printf("The passkey YES/NO number: %" PRIu32 "\n", pass_key);
6254
/** Inject false if passkeys don't match. */

0 commit comments

Comments
 (0)