File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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. */
Original file line number Diff line number Diff 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. */
You can’t perform that action at this time.
0 commit comments