8000 FIX: BLESecurity.h -> BLESecurityCallbacks. · thejeshgn/esp32-snippets@d6ef149 · GitHub
[go: up one dir, main page]

Skip to content

Commit d6ef149

Browse files
committed
FIX: BLESecurity.h -> BLESecurityCallbacks.
Make all the methods pure virtual. Some of the methods were virtual, but without local definitions, this creates an error during linking.
1 parent faf2839 commit d6ef149

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cpp_utils/BLESecurity.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@ class BLESecurityCallbacks {
5151
* It requires that our device is capable to display this code to end user
5252
* @param
5353
*/
54-
virtual void onPassKeyNotify(uint32_t pass_key);
54+
virtual void onPassKeyNotify(uint32_t pass_key) = 0;
5555

5656
/**
5757
* @brief Here we can make decision if we want to let negotiate authorization with peer device or not
5858
* return Return true if we accept this peer device request
5959
*/
6060

61-
virtual bool onSecurityRequest();
61+
virtual bool onSecurityRequest() = 0 ;
6262
/**
6363
* Provide us information when authentication process is completed
6464
*/
65-
virtual void onAuthenticationComplete(esp_ble_auth_cmpl_t);
65+
virtual void onAuthenticationComplete(esp_ble_auth_cmpl_t) = 0;
6666

67-
virtual bool onConfirmPIN(uint32_t pin);
67+
virtual bool onConfirmPIN(uint32_t pin) = 0;
6868
}; // BLESecurityCallbacks
6969

7070
#endif // CONFIG_BT_ENABLED

0 commit comments

Comments
 (0)
0